diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-03-04 20:12:50 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-03-04 20:12:50 +0000 |
commit | becf7bb95eafcd069d5a8944448793c139c2a145 (patch) | |
tree | 9df7c7ac118478189fe3f4932d962abf4ae44e99 /test | |
parent | a65147995e16cde3f22f20379bbc328b44c7ebb3 (diff) | |
download | gleam_stdlib-becf7bb95eafcd069d5a8944448793c139c2a145.tar.gz gleam_stdlib-becf7bb95eafcd069d5a8944448793c139c2a145.zip |
Tests
Diffstat (limited to 'test')
-rw-r--r-- | test/gleam/list_test.gleam | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/gleam/list_test.gleam b/test/gleam/list_test.gleam index 0027920..04a1fb6 100644 --- a/test/gleam/list_test.gleam +++ b/test/gleam/list_test.gleam @@ -528,19 +528,19 @@ pub fn zip_test() { pub fn strict_zip_test() { list.strict_zip([], [1, 2, 3]) - |> should.equal(Error(list.LengthMismatch)) + |> should.equal(Error(Nil)) list.strict_zip([1, 2], []) - |> should.equal(Error(list.LengthMismatch)) + |> should.equal(Error(Nil)) list.strict_zip([1, 2, 3], [4, 5, 6]) |> should.equal(Ok([#(1, 4), #(2, 5), #(3, 6)])) list.strict_zip([5, 6], [1, 2, 3]) - |> should.equal(Error(list.LengthMismatch)) + |> should.equal(Error(Nil)) list.strict_zip([5, 6, 7], [1, 2]) - |> should.equal(Error(list.LengthMismatch)) + |> should.equal(Error(Nil)) } pub fn unzip_test() { |