diff options
author | YilunAllenChen <allenchenyilun1999@gmail.com> | 2024-12-17 19:38:47 -0600 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-12-19 11:58:24 +0000 |
commit | e6107961d933d9ec34503bfee10d7fdea6aea87b (patch) | |
tree | 71fc94ed45d8de9eb0525ad74915abfdd6033752 /test | |
parent | a3018d0ab4e5d6ac0fa381d7798397554f1e5a91 (diff) | |
download | gleam_stdlib-e6107961d933d9ec34503bfee10d7fdea6aea87b.tar.gz gleam_stdlib-e6107961d933d9ec34503bfee10d7fdea6aea87b.zip |
remove min
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/list_test.gleam | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam index 0e7e4de..2a67f94 100644 --- a/test/gleam/list_test.gleam +++ b/test/gleam/list_test.gleam @@ -1299,21 +1299,3 @@ pub fn max_test() { |> list.max(string.compare) |> should.equal(Ok("c")) } - -pub fn min_test() { - [] - |> list.min(int.compare) - |> should.equal(Error(Nil)) - - [1, 3, 2] - |> list.min(int.compare) - |> should.equal(Ok(1)) - - [-1.0, 1.2, 1.104] - |> list.min(float.compare) - |> should.equal(Ok(-1.0)) - - ["a", "c", "b"] - |> list.min(string.compare) - |> should.equal(Ok("a")) -} |