let encoded = encode (Bint i)
decoded = decode encoded
in Right (Bint i) == decoded
- -- describe "Bencode property tests" $ do
- -- it "encode/decode" $ do
- -- property $ \bval ->
- -- let encoded = encode bval
- -- decoded = decode encoded
- -- in Right bval == decoded
+ it "encode/decode blist tests" $ do
+ property $ \bval ->
+ let encoded = encode (Blist (take 1 bval))
+ decoded = decode encoded
+ in Right (Blist (take 1 bval)) == decoded
+ -- it "encode/decode" $ do
+ -- property $ \bval ->
+ -- let encoded = encode bval
+ -- decoded = decode encoded
+ -- in Right bval == decoded