on master help sign in
Add a test checking the size in the roundtrip serialization tests
1d0e20cAdithya Kumar
test/Streamly/Test/Data/Serialize.hs+1
@@ -69,6 +69,7 @@ roundtrip val = do
69 (off2, val2) <- Serialize.deserialize 0 arr sz
69 (off2, val2) <- Serialize.deserialize 0 arr sz
70 val2 `shouldBe` val
70 val2 `shouldBe` val
71 off2 `shouldBe` off1
71 off2 `shouldBe` off1
72+ off2 `shouldBe` sz
72
73
73testSerializeList
74testSerializeList
74 :: forall a. (Eq a, Show a, Serialize.Serialize a)
75 :: forall a. (Eq a, Show a, Serialize.Serialize a)