add parse and stringify

This commit is contained in:
2025-06-22 19:53:49 +08:00
parent ab8d74efe6
commit 28ff7008a8
9 changed files with 347 additions and 9 deletions

View File

@ -48,12 +48,12 @@ namespace yycctest::string::op {
}
TEST(StringOp, Lower) {
auto rv = OP::lower(YYCC_U8("LOWER"));
auto rv = OP::to_lower(YYCC_U8("LOWER"));
EXPECT_EQ(rv, YYCC_U8("lower"));
}
TEST(StringOp, Upper) {
auto rv = OP::upper(YYCC_U8("upper"));
auto rv = OP::to_upper(YYCC_U8("upper"));
EXPECT_EQ(rv, YYCC_U8("UPPER"));
}