From aec496291de09c0387d51a3ee1fbdb5927b19c15 Mon Sep 17 00:00:00 2001 From: Sam Truzjan Date: Sun, 29 Sep 2013 08:37:41 +0400 Subject: Rename decode and encode to mimic Binary package This lead to more intuitive API. --- tests/properties.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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 data T a = T prop_bencodable :: Eq a => BEncode a => T a -> a -> Bool -prop_bencodable _ x = decoded (L.toStrict (encoded x)) == Right x +prop_bencodable _ x = decode (L.toStrict (encode x)) == Right x -- All tests are (encode >>> decode = id) main :: IO () -- cgit v1.2.3