MCPcopy Create free account
hub / github.com/comaps/comaps / UNIT_TEST

Function UNIT_TEST

libs/coding/coding_tests/hex_test.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace std;
11
12UNIT_TEST(GoldenRecode)
13{
14 string data("\x01\x23\x45\x67\x89\xAB\xCD\xEF");
15 string hexData("0123456789ABCDEF");
16
17 TEST_EQUAL(ToHex(data), hexData, ());
18 TEST_EQUAL(data, FromHex(hexData), ());
19}
20
21UNIT_TEST(RandomRecode)
22{

Callers

nothing calls this directly

Calls 4

ToHexFunction · 0.85
FromHexFunction · 0.85
NumToHexFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected