Description
The boolean serialization is incorrect, as these new unit tests would indicate:
primitive_ok boolean => 0, "\x0"; primitive_ok boolean => 1, "\x1";
When run they print:
# Failed test 'primitive boolean encoded correctly' # at t/02_bin_encode.t line 40. # got: '30' # expected: '00' # Failed test 'primitive boolean encoded correctly' # at t/02_bin_encode.t line 40. # got: '31' # expected: '01'
Secondly, when evaluating whether a 'boolean' branch should be taken in a union, the check for boolean-ness of the data is being done incorrectly, matching a regular expression against the wrong variable.
Attachments
Attachments
Issue Links
- is cloned by
-
AVRO-1521 Inconsistent behavior of Perl API with 'boolean' type
- Resolved