takes a string literal of the form '...', r'...', "..." or r"...". is the expected parsed form of .
| 43 | // <quoted> takes a string literal of the form '...', r'...', "..." or r"...". |
| 44 | // <unquoted> is the expected parsed form of <quoted>. |
| 45 | void TestQuotedString(const std::string& unquoted, const std::string& quoted) { |
| 46 | auto status_or_unquoted = ParseStringLiteral(quoted); |
| 47 | EXPECT_OK(status_or_unquoted) << unquoted; |
| 48 | EXPECT_EQ(unquoted, status_or_unquoted.value()) << quoted; |
| 49 | } |
| 50 | |
| 51 | void TestString(const std::string& unquoted) { |
| 52 | TestQuotedString(unquoted, FormatStringLiteral(unquoted)); |
no test coverage detected