Testcase for case-split crash
This commit is contained in:
parent
c925e920a0
commit
8e2c6fd083
@ -39,3 +39,8 @@ spec = do
|
|||||||
res `shouldBe` "38 21 38 59"++
|
res `shouldBe` "38 21 38 59"++
|
||||||
" \"mlReverse' Nil accum = _mlReverse_body\NUL"++
|
" \"mlReverse' Nil accum = _mlReverse_body\NUL"++
|
||||||
" mlReverse' (Cons xs'1 xs'2) accum = _mlReverse_body\"\n"
|
" mlReverse' (Cons xs'1 xs'2) accum = _mlReverse_body\"\n"
|
||||||
|
|
||||||
|
it "doesn't crash when source doesn't make sense" $
|
||||||
|
withDirectory_ "test/data/case-split" $ do
|
||||||
|
res <- runD $ splits "Crash.hs" 4 6
|
||||||
|
res `shouldBe` []
|
||||||
|
4
test/data/case-split/Crash.hs
Normal file
4
test/data/case-split/Crash.hs
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
module Crash where
|
||||||
|
|
||||||
|
test :: Maybe a
|
||||||
|
test x = undefined
|
Loading…
Reference in New Issue
Block a user