Skip to content

Commit f999ca1

Browse files
committed
test stack-safety of strict map
1 parent 759daf2 commit f999ca1

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
@@ -339,6 +339,9 @@ testList = do
339339
log "map should maintain order"
340340
assert $ (1..5) == map id (1..5)
341341

342+
log "map should be stack-safe"
343+
void $ pure $ map id (1..100000)
344+
342345
log "transpose"
343346
assert $ transpose (l [l [1,2,3], l[4,5,6], l [7,8,9]]) ==
344347
(l [l [1,4,7], l[2,5,8], l [3,6,9]])

0 commit comments

Comments
 (0)