aboutsummaryrefslogtreecommitdiff
path: root/gen/test
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2019-08-14 23:33:06 +0100
committerLouis Pilfold <louis@lpil.uk>2019-08-14 23:33:06 +0100
commit261889c5b56b6610c370e2bd6ae78c0f81e22688 (patch)
tree5f035fc7d491fb4c8c61969e100b31ce7bf1ec8b /gen/test
parentddba860d353d86c3daa8c3bf7054e9f73c43eac4 (diff)
downloadgleam_stdlib-261889c5b56b6610c370e2bd6ae78c0f81e22688.tar.gz
gleam_stdlib-261889c5b56b6610c370e2bd6ae78c0f81e22688.zip
Slightly optimise list:sort
Diffstat (limited to 'gen/test')
-rw-r--r--gen/test/gleam@list_test.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/gen/test/gleam@list_test.erl b/gen/test/gleam@list_test.erl
index 1037884..2411f0b 100644
--- a/gen/test/gleam@list_test.erl
+++ b/gen/test/gleam@list_test.erl
@@ -183,6 +183,10 @@ sort_test() ->
gleam@list:sort([4, 3, 6, 5, 4], fun gleam@int:compare/2),
[3, 4, 4, 5, 6]
),
+ gleam@expect:equal(
+ gleam@list:sort([4, 3, 6, 5, 4, 1], fun gleam@int:compare/2),
+ [1, 3, 4, 4, 5, 6]
+ ),
gleam@expect:equal(gleam@list:sort([], fun gleam@int:compare/2), []).
index_map_test() ->