summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-09-29 08:37:41 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-09-29 08:37:41 +0400
commitaec496291de09c0387d51a3ee1fbdb5927b19c15 (patch)
tree85895e2182431b97cac41fe221798d93c63ffec9 /tests
parentbb73c6aa23a05ad55432b869649c89e9eb656d6c (diff)
Rename decode and encode to mimic Binary package
This lead to more intuitive API.
Diffstat (limited to 'tests')
-rw-r--r--tests/properties.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/properties.hs b/tests/properties.hs
index 586e94d..3d08eed 100644
--- a/tests/properties.hs
+++ b/tests/properties.hs
@@ -54,7 +54,7 @@ instance Arbitrary FileInfo where
54data T a = T 54data T a = T
55 55
56prop_bencodable :: Eq a => BEncode a => T a -> a -> Bool 56prop_bencodable :: Eq a => BEncode a => T a -> a -> Bool
57prop_bencodable _ x = decoded (L.toStrict (encoded x)) == Right x 57prop_bencodable _ x = decode (L.toStrict (encode x)) == Right x
58 58
59-- All tests are (encode >>> decode = id) 59-- All tests are (encode >>> decode = id)
60main :: IO () 60main :: IO ()