diff options
Diffstat (limited to 'tests/properties.hs')
-rw-r--r-- | tests/properties.hs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/properties.hs b/tests/properties.hs index 2e5345f..876b954 100644 --- a/tests/properties.hs +++ b/tests/properties.hs | |||
@@ -70,3 +70,9 @@ main = hspec $ do | |||
70 | 70 | ||
71 | it "generic records" $ property $ | 71 | it "generic records" $ property $ |
72 | prop_bencodable (T :: T FileInfo) | 72 | prop_bencodable (T :: T FileInfo) |
73 | |||
74 | describe "Get" $ do | ||
75 | it "catchable from pure code" $ do | ||
76 | fromDict (fail "fatal error" :: Get Int) (BDict BE.Nil) | ||
77 | `shouldBe` | ||
78 | Left "fatal error" | ||