Skip to content

Commit 682d9e0

Browse files
committed
Test for other types
1 parent 1b52b08 commit 682d9e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/gleam/list_test.gleam

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import gleam/float
2+
import gleam/pair
23
import gleam/int
34
import gleam/list
45
import gleam/map
@@ -184,6 +185,9 @@ pub fn map2_test() {
184185
list.map2([1, 2, 3], [4, 5, 6], int.add)
185186
|> should.equal([5, 7, 9])
186187

188+
list.map2([1, 2, 3], ["1", "2"], pair.new)
189+
|> should.equal([#(1, "1"), #(2, "2")])
190+
187191
// TCO test
188192
let list = list.repeat(0, recursion_test_cycles)
189193
list.map2(list, list, int.add)

0 commit comments

Comments
 (0)