commit | 497066ee87dd54341adaa1195bf15ad11ee33b20 | [log] [tgz] |
---|---|---|
author | Thiago Macieira <thiago.macieira@intel.com> | Fri Jan 12 03:37:09 2018 |
committer | Thiago Macieira <thiago.macieira@intel.com> | Tue Jan 23 18:36:41 2018 |
tree | b2238f047f17b050fbbc7058f0748089564fe1a8 | |
parent | 1b9a6401ea3cf0ad569b782548d736f464635227 [diff] |
Encoder: Fix off-by-one error encoding negative numbers The documentation said we encoded the negative value equivalent to the passed absolute value. That means encode_number() requires the subtraction. This commit takes the opportunity to unit-test the rest of the integer API in the parser. Signed-off-by: Thiago Macieira <thiago.macieira@intel.com>