Skip to content

Commit

Permalink
Sync high-scores tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras committed Feb 4, 2024
1 parent 6c56fe9 commit 6ab6cf5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/practice/high-scores/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ description = "Top 3 scores -> Latest score after personal top scores"

[809c4058-7eb1-4206-b01e-79238b9b71bc]
description = "Top 3 scores -> Scores after personal top scores"

[ddb0efc0-9a86-4f82-bc30-21ae0bdc6418]
description = "Top 3 scores -> Latest score after personal best"

[6a0fd2d1-4cc4-46b9-a5bb-2fb667ca2364]
description = "Top 3 scores -> Scores after personal best"
20 changes: 20 additions & 0 deletions exercises/practice/high-scores/high-scores-test.red
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,24 @@ test "Scores after personal top scores" [
]
]

test "Latest score after personal best" [
scoresList: [20 70 15 25 30]

personal-best scoresList

expect 30 [
latest scoresList
]
]

test "Scores after personal best" [
scoresList: [20 70 15 25 30]

personal-best scoresList

expect [20 70 15 25 30] [
scores scoresList
]
]

test-results/print

0 comments on commit 6ab6cf5

Please sign in to comment.