Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync high-scores tests #143

Merged
merged 1 commit into from
Feb 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading