mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-04 02:46:17 +08:00
lib/base: Make to_hex() easier to use
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user