Files
blackcoin-more/src/test/serialize_tests.cpp
Wladimir J. van der Laan a1f776cd3c 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.
2018-11-11 16:43:34 +03:00

11 KiB