MCPcopy Create free account
hub / github.com/InoriRus/Kyty / test_hex

Function test_hex

source/unit_test/src/core/UnitTestCoreString.cpp:859–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

857}
858
859void test_hex()
860{
861 String s = U"00112233445566778899AABBCCDDEEFF";
862
863 // printf("%s\n", bin_to_hex(hex_to_bin(s)).C_Str());
864
865 EXPECT_EQ(s, String::HexFromBin(s.HexToBin()));
866
867 s = U"24FC79CCBF0979E9371AC23C6D68DE36";
868
869 // printf("%s\n", bin_to_hex(hex_to_bin(s)).C_Str());
870
871 EXPECT_EQ(s, String::HexFromBin(s.HexToBin()));
872}
873
874void text_utf16()
875{

Callers 1

TESTFunction · 0.85

Calls 1

HexToBinMethod · 0.80

Tested by

no test coverage detected