aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Snyder <bsnyder@digitalocean.com>2019-05-10 12:18:27 -0500
committerLouis Pilfold <louis@lpil.uk>2019-05-10 18:18:27 +0100
commiteb243dd13cbcdf5f6d37b7e2084414df95d7e0d9 (patch)
treea85a06f137c476e429b9547e0a085e5997d4de5b
parent83525b26f33d906284c1d5637aafe578d32704ba (diff)
downloadgleam_stdlib-eb243dd13cbcdf5f6d37b7e2084414df95d7e0d9.tar.gz
gleam_stdlib-eb243dd13cbcdf5f6d37b7e2084414df95d7e0d9.zip
list:strict_zip fix test (#168)
-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