mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Move compressor utility functions out of class
This commit is contained in:
@@ -25,16 +25,16 @@
|
||||
BOOST_FIXTURE_TEST_SUITE(compress_tests, BasicTestingSetup)
|
||||
|
||||
bool static TestEncode(uint64_t in) {
|
||||
return in == CTxOutCompressor::DecompressAmount(CTxOutCompressor::CompressAmount(in));
|
||||
return in == DecompressAmount(CompressAmount(in));
|
||||
}
|
||||
|
||||
bool static TestDecode(uint64_t in) {
|
||||
return in == CTxOutCompressor::CompressAmount(CTxOutCompressor::DecompressAmount(in));
|
||||
return in == CompressAmount(DecompressAmount(in));
|
||||
}
|
||||
|
||||
bool static TestPair(uint64_t dec, uint64_t enc) {
|
||||
return CTxOutCompressor::CompressAmount(dec) == enc &&
|
||||
CTxOutCompressor::DecompressAmount(enc) == dec;
|
||||
return CompressAmount(dec) == enc &&
|
||||
DecompressAmount(enc) == dec;
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(compress_amounts)
|
||||
|
||||
Reference in New Issue
Block a user