[erlang-bugs] binary_to_term--are these bugs?
Fri Jan 18 11:48:11 CET 2008
I've found some behaviour that I didn't expect in binary_to_term in R12B.
I'm testing the QuickCheck property
case catch binary_to_term(Bin) of
Bins = term_to_binaries(Term),
|| Level <- lists:seq(0,9),
Ver <- [0,1]]).
The property says that any binary that binary_to_term successfully decodes,
must be an encoding of that term using some compression level and minor
version (the encoding options mentioned in the documentation). But it fails,
on, for example:
where the output in each case is the binary, the term it decodes to, and the
list of all possible encodings produced by term_to_binary.
Is this a bug?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-bugs