aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/gleam/list_test.gleam4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam
index a8b58e0..46e14ea 100644
--- a/test/gleam/list_test.gleam
+++ b/test/gleam/list_test.gleam
@@ -263,6 +263,10 @@ pub fn sort_test() {
|> list:sort(_, int:compare)
|> expect:equal(_, [3, 4, 4, 5, 6])
+ [4, 3, 6, 5, 4, 1]
+ |> list:sort(_, int:compare)
+ |> expect:equal(_, [1, 3, 4, 4, 5, 6])
+
// TODO: Requires float:compare
// [4.1, 3.1, 6.1, 5.1, 4.1]
// |> list:sort(_, float:compare)