Skip to content

Commit 677342a

Browse files
committed
test stack-safety of strict map
1 parent 87c5a16 commit 677342a

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
@@ -360,6 +360,9 @@ testList = do
360360
log "map should maintain order"
361361
assert $ (1..5) == map id (1..5)
362362

363+
log "map should be stack-safe"
364+
void $ pure $ map id (1..100000)
365+
363366
log "transpose"
364367
assert $ transpose (l [l [1,2,3], l[4,5,6], l [7,8,9]]) ==
365368
(l [l [1,4,7], l[2,5,8], l [3,6,9]])

0 commit comments

Comments
 (0)