Skip to content

Commit e2d4b1d

Browse files
committed
more tests
1 parent 1c518db commit e2d4b1d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/Test/Data/String.purs

+5-1
Original file line numberDiff line numberDiff line change
@@ -212,4 +212,8 @@ testString = do
212212
assert $ slice 0 1 "purescript" == Just "p"
213213
assert $ slice 3 6 "purescript" == Just "esc"
214214
assert $ slice (-4) (-1) "purescript" == Just "rip"
215-
assert $ slice (-4) 3 "purescript" == Nothing
215+
assert $ slice (-4) 3 "purescript" == Nothing -- b' > e'
216+
assert $ slice 1000 3 "purescript" == Nothing -- b' > e' (subsumes b > l)
217+
assert $ slice 2 (-15) "purescript" == Nothing -- e' < 0
218+
assert $ slice (-15) 9 "purescript" == Nothing -- b' < 0
219+
assert $ slice 3 1000 "purescript" == Nothing -- e > l

0 commit comments

Comments
 (0)