Skip to content

Commit

Permalink
Update high-scores.test (#327)
Browse files Browse the repository at this point in the history
Test high-scores-1.3 added: List of scores, repeated addition. The purpose is to check if scores are added and not replaced.
  • Loading branch information
antanasb authored Mar 30, 2024
1 parent ede5268 commit 0d9014b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions exercises/practice/high-scores/high-scores.test
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ test high-scores-1.2 {List of scores, uninitialized} -setup {
$hs scores
} -returnCodes ok -result {}

# track test
skip high-scores-1.3
test high-scores-1.3 {List of scores, repeated addition} -setup {
set hs [HighScores new]
} -body {
$hs addScores 30 50
$hs addScores 20 70
$hs scores
} -returnCodes ok -result {30 50 20 70}

skip high-scores-2.1
test high-scores-2.1 {Latest score} -setup {
set hs [HighScores new]
Expand Down

0 comments on commit 0d9014b

Please sign in to comment.