Skip to content

Commit 6fbaed0

Browse files
committed
Add test for stack-safety of \\
1 parent ceb3a3e commit 6fbaed0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/Test/Data/Array.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,9 @@ testArray = do
296296
log "(\\\\) should return the difference between two lists"
297297
assert $ [1, 2, 3, 4, 3, 2, 1] \\ [1, 1, 2, 3] == [4, 3, 2]
298298

299+
log "(\\\\) should be stack-safe"
300+
assert $ range 1 10000 \\ range 1 10000 == []
301+
299302
log "intersect should return the intersection of two arrays"
300303
assert $ intersect [1, 2, 3, 4, 3, 2, 1] [1, 1, 2, 3] == [1, 2, 3, 3, 2, 1]
301304

0 commit comments

Comments
 (0)