Skip to content

Commit eb243dd

Browse files
bsnyder788lpil
authored andcommitted
list:strict_zip fix test (#168)
1 parent 83525b2 commit eb243dd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

gen/test/list_test.erl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ zip_test() ->
114114
strict_zip_test() ->
115115
expect:is_error(list:strict_zip([], [1, 2, 3])),
116116
expect:is_error(list:strict_zip([1, 2], [])),
117-
expect:equal(list:zip([1, 2, 3], [4, 5, 6]), [{1, 4}, {2, 5}, {3, 6}]),
117+
expect:equal(list:strict_zip([1, 2, 3], [4, 5, 6]),
118+
{ok, [{1, 4}, {2, 5}, {3, 6}]}),
118119
expect:is_error(list:strict_zip([5, 6], [1, 2, 3])),
119120
expect:is_error(list:strict_zip([5, 6, 7], [1, 2])).
120121

test/list_test.gleam

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ pub fn strict_zip_test() {
211211
list:strict_zip([1, 2], [])
212212
|> expect:is_error
213213

214-
list:zip([1, 2, 3], [4, 5, 6])
215-
|> expect:equal(_, [{1, 4}, {2, 5}, {3, 6}])
214+
list:strict_zip([1, 2, 3], [4, 5, 6])
215+
|> expect:equal(_, Ok([{1, 4}, {2, 5}, {3, 6}]))
216216

217217
list:strict_zip([5, 6], [1, 2, 3])
218218
|> expect:is_error

0 commit comments

Comments
 (0)