Changeset View
Changeset View
Standalone View
Standalone View
src/test/dstencode_tests.cpp
Show All 15 Lines | public: | ||||
DstCfgDummy() : useCashAddr(false) {} | DstCfgDummy() : useCashAddr(false) {} | ||||
void SetCashAddrEncoding(bool b) override { useCashAddr = b; } | void SetCashAddrEncoding(bool b) override { useCashAddr = b; } | ||||
bool UseCashAddrEncoding() const override { return useCashAddr; } | bool UseCashAddrEncoding() const override { return useCashAddr; } | ||||
private: | private: | ||||
bool useCashAddr; | bool useCashAddr; | ||||
}; | }; | ||||
} // anon ns | } // namespace | ||||
BOOST_FIXTURE_TEST_SUITE(dstencode_tests, BasicTestingSetup) | BOOST_FIXTURE_TEST_SUITE(dstencode_tests, BasicTestingSetup) | ||||
BOOST_AUTO_TEST_CASE(test_addresses) { | BOOST_AUTO_TEST_CASE(test_addresses) { | ||||
std::vector<uint8_t> hash = {118, 160, 64, 83, 189, 160, 168, | std::vector<uint8_t> hash = {118, 160, 64, 83, 189, 160, 168, | ||||
139, 218, 81, 119, 184, 106, 21, | 139, 218, 81, 119, 184, 106, 21, | ||||
195, 178, 159, 85, 152, 115}; | 195, 178, 159, 85, 152, 115}; | ||||
Show All 37 Lines |