| 627 | } |
| 628 | |
| 629 | void ExpectParsedBytes(const std::string& expected, |
| 630 | const std::vector<std::string>& quoted_strings) { |
| 631 | for (const std::string& quoted : quoted_strings) { |
| 632 | ASSERT_OK_AND_ASSIGN(auto parsed, ParseBytesLiteral(quoted)); |
| 633 | EXPECT_EQ(expected, parsed); |
| 634 | } |
| 635 | } |
| 636 | |
| 637 | TEST(StringsTest, Parse) { |
| 638 | ExpectParsedString("abc", |