HomePhabricator

tests: add varints_bitpatterns test
4521f005a1e6Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

tests: add varints_bitpatterns test

The current tests for varint only check that
serialization-deserialization is a roundtrip. That is a useful test, but
it is also good to check for some exact bit patterns, to prevent a code
change that changes the serialization format from going undetected.

As the varint functions are templated, also check with different types.

Details

Provenance
Wladimir J. van der Laan <laanwj@gmail.com>Authored on Apr 9 2016, 04:52
deadalnixPushed on May 14 2017, 22:04
Parents
rABC0afac87e8173: Merge #7835: Version 2 transactions remain non-standard until CSV activates
Branches
Unknown
Tags
Unknown

Event Timeline

Wladimir J. van der Laan <laanwj@gmail.com> committed rABC4521f005a1e6: tests: add varints_bitpatterns test (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Apr 9 2016, 07:17