aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gen/test/list_test.erl3
-rw-r--r--test/list_test.gleam4
2 files changed, 4 insertions, 3 deletions
diff --git a/gen/test/list_test.erl b/gen/test/list_test.erl
index 20c1d1c..14e204b 100644
--- a/gen/test/list_test.erl
+++ b/gen/test/list_test.erl
@@ -114,7 +114,8 @@ zip_test() ->
strict_zip_test() ->
expect:is_error(list:strict_zip([], [1, 2, 3])),
expect:is_error(list:strict_zip([1, 2], [])),
- expect:equal(list:zip([1, 2, 3], [4, 5, 6]), [{1, 4}, {2, 5}, {3, 6}]),
+ expect:equal(list:strict_zip([1, 2, 3], [4, 5, 6]),
+ {ok, [{1, 4}, {2, 5}, {3, 6}]}),
expect:is_error(list:strict_zip([5, 6], [1, 2, 3])),
expect:is_error(list:strict_zip([5, 6, 7], [1, 2])).
diff --git a/test/list_test.gleam b/test/list_test.gleam
index 779ba7b..ef80223 100644
--- a/test/list_test.gleam
+++ b/test/list_test.gleam
@@ -211,8 +211,8 @@ pub fn strict_zip_test() {
list:strict_zip([1, 2], [])
|> expect:is_error
- list:zip([1, 2, 3], [4, 5, 6])
- |> expect:equal(_, [{1, 4}, {2, 5}, {3, 6}])
+ list:strict_zip([1, 2, 3], [4, 5, 6])
+ |> expect:equal(_, Ok([{1, 4}, {2, 5}, {3, 6}]))
list:strict_zip([5, 6], [1, 2, 3])
|> expect:is_error