Skip to content

Commit 4fbe0ca

Browse files
committed
add failing map test
1 parent cadf481 commit 4fbe0ca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Test/Data/List.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ testList = do
363363
log "map should be stack-safe"
364364
void $ pure $ map id (1..100000)
365365

366+
log "map should be correct"
367+
assert $ (1..1000000) == map (_ + 1) (0..999999)
368+
366369
log "transpose"
367370
assert $ transpose (l [l [1,2,3], l[4,5,6], l [7,8,9]]) ==
368371
(l [l [1,4,7], l[2,5,8], l [3,6,9]])

0 commit comments

Comments
 (0)