diff --git a/exercises/practice/high-scores/test_high_scores.zig b/exercises/practice/high-scores/test_high_scores.zig index 8268f60a..723b993e 100644 --- a/exercises/practice/high-scores/test_high_scores.zig +++ b/exercises/practice/high-scores/test_high_scores.zig @@ -38,3 +38,8 @@ test "Top 3 scores-Personal top when there is only one" { const scores = &[_]i32{40}; try testing.expectEqualSlices(i32, &[_]i32{40}, HighScores.init(scores).personalTopThree()); } + +test "Latest score can be outside top three" { + const scores = &[_]i32{ 80, 70, 90, 10, 20, 30 }; + try testing.expectEqual(30, HighScores.init(scores).latest()); +}