MCPcopy Create free account
hub / github.com/ElementsProject/elements / TestPair

Function TestPair

src/test/compress_tests.cpp:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35bool static TestPair(uint64_t dec, uint64_t enc) {
36 return CompressAmount(dec) == enc &&
37 DecompressAmount(enc) == dec;
38}
39
40BOOST_AUTO_TEST_CASE(compress_amounts)
41{

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 2

CompressAmountFunction · 0.85
DecompressAmountFunction · 0.85

Tested by

no test coverage detected