lib/base: Make to_hex() easier to use

This commit is contained in:
Povilas Kanapickas
2021-11-01 02:52:31 +02:00
parent 7f71924a86
commit 96e0021572
4 changed files with 6 additions and 8 deletions

View File

@@ -59,9 +59,7 @@ TEST(StringTests, toHex_plaintext_hexString)
String subject = "foobar";
int width = 2;
string::toHex(subject, width);
EXPECT_EQ("666f6f626172", subject);
EXPECT_EQ("666f6f626172", string::to_hex(subject, width));
}
TEST(StringTests, uppercase_lowercaseInput_uppercaseOutput)