Skip to content

Commit

Permalink
test: Array::unique - long
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyfettes committed Oct 6, 2024
1 parent 68f9c38 commit cb1a7af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions builtin/array_test.mbt
Original file line number Diff line number Diff line change
Expand Up @@ -597,3 +597,9 @@ test "unique" {
array.unique()
inspect!(array, content="[3, 4, 5, 6, 4]")
}

test "unique - long" {
let array = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 5, 5, 6, 6, 4, 3, 2, 1, 1, 1]
array.unique()
inspect!(array, content="[1, 2, 3, 4, 5, 6, 4, 3, 2, 1]")
}

0 comments on commit cb1a7af

Please sign in to comment.