From 4034b4c079569c1af06ca30ef16ec1f1762ede7f Mon Sep 17 00:00:00 2001 From: Dirk Gadsden Date: Thu, 15 Aug 2019 11:57:32 -0700 Subject: Uncomment test of `list:sort` with `float:compare` --- test/gleam/list_test.gleam | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam index 46e14ea..bb9168a 100644 --- a/test/gleam/list_test.gleam +++ b/test/gleam/list_test.gleam @@ -267,10 +267,9 @@ pub fn sort_test() { |> 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) - // |> expect:equal(_, [3.1, 4.1, 4.1, 5.1, 6.1]) + [4.1, 3.1, 6.1, 5.1, 4.1] + |> list:sort(_, float:compare) + |> expect:equal(_, [3.1, 4.1, 4.1, 5.1, 6.1]) [] |> list:sort(_, int:compare) -- cgit v1.2.3