• Home
  • Raw
  • Download

Lines Matching refs:RunTest

29 void RunTest(const std::string& data, const std::vector<std::vector<std::string>>& expected_tokens)…  in RunTest()  function
61 RunTest("", {{}}); in TEST()
65 RunTest("one two\tthree\rfour", {{"one", "two", "three", "four"}}); in TEST()
69 RunTest("1 2 3\n4 5 6\n7 8 9", {{"1", "2", "3"}, {"4", "5", "6"}, {"7", "8", "9"}}); in TEST()
74 RunTest(" 1 2 3\n\t\t\t\t4 5 6\n\r\r\r\r7 8 9", in TEST()
80 RunTest("1 2 3\n#4 5 6\n7 8 9", {{"1", "2", "3"}, {}, {"7", "8", "9"}}); in TEST()
82 RunTest("#1 2 3\n4 5 6\n7 8 9", {{}, {"4", "5", "6"}, {"7", "8", "9"}}); in TEST()
84 RunTest("1 2 3\n4 5 6\n#7 8 9", {{"1", "2", "3"}, {"4", "5", "6"}, {}}); in TEST()
86 RunTest("1 2 #3\n4 #5 6\n#7 8 9", {{"1", "2"}, {"4"}, {}}); in TEST()
93 RunTest(R"(1 token\ntoken 2)", {{"1", "token\ntoken", "2"}}); in TEST()
94 RunTest(R"(1 token\rtoken 2)", {{"1", "token\rtoken", "2"}}); in TEST()
95 RunTest(R"(1 token\ttoken 2)", {{"1", "token\ttoken", "2"}}); in TEST()
96 RunTest(R"(1 token\\token 2)", {{"1", "token\\token", "2"}}); in TEST()
97 RunTest(R"(1 token\btoken 2)", {{"1", "tokenbtoken", "2"}}); in TEST()
99 RunTest(R"(1 token\n 2)", {{"1", "token\n", "2"}}); in TEST()
100 RunTest(R"(1 token\r 2)", {{"1", "token\r", "2"}}); in TEST()
101 RunTest(R"(1 token\t 2)", {{"1", "token\t", "2"}}); in TEST()
102 RunTest(R"(1 token\\ 2)", {{"1", "token\\", "2"}}); in TEST()
103 RunTest(R"(1 token\b 2)", {{"1", "tokenb", "2"}}); in TEST()
105 RunTest(R"(1 \ntoken 2)", {{"1", "\ntoken", "2"}}); in TEST()
106 RunTest(R"(1 \rtoken 2)", {{"1", "\rtoken", "2"}}); in TEST()
107 RunTest(R"(1 \ttoken 2)", {{"1", "\ttoken", "2"}}); in TEST()
108 RunTest(R"(1 \\token 2)", {{"1", "\\token", "2"}}); in TEST()
109 RunTest(R"(1 \btoken 2)", {{"1", "btoken", "2"}}); in TEST()
111 RunTest(R"(1 \n 2)", {{"1", "\n", "2"}}); in TEST()
112 RunTest(R"(1 \r 2)", {{"1", "\r", "2"}}); in TEST()
113 RunTest(R"(1 \t 2)", {{"1", "\t", "2"}}); in TEST()
114 RunTest(R"(1 \\ 2)", {{"1", "\\", "2"}}); in TEST()
115 RunTest(R"(1 \b 2)", {{"1", "b", "2"}}); in TEST()
122 RunTest("lf\\\ncont", {{"lfcont"}}); in TEST()
123 RunTest("lf\\\n \t\t\t\tcont", {{"lfcont"}}); in TEST()
125 RunTest("crlf\\\r\ncont", {{"crlfcont"}}); in TEST()
126 RunTest("crlf\\\r\n \t\t\t\tcont", {{"crlfcont"}}); in TEST()
128 RunTest("cr\\\rcont", {{"crcont"}}); in TEST()
130 RunTest("lfspace \\\ncont", {{"lfspace", "cont"}}); in TEST()
131 RunTest("lfspace \\\n \t\t\t\tcont", {{"lfspace", "cont"}}); in TEST()
133 RunTest("crlfspace \\\r\ncont", {{"crlfspace", "cont"}}); in TEST()
134 RunTest("crlfspace \\\r\n \t\t\t\tcont", {{"crlfspace", "cont"}}); in TEST()
136 RunTest("crspace \\\rcont", {{"crspace", "cont"}}); in TEST()
140 RunTest("\"quoted simple string\"", {{"quoted simple string"}}); in TEST()
143 RunTest("\"unterminated quoted string", {}); in TEST()
145 RunTest("\"1 2 3\"\n \"unterminated quoted string", {{"1 2 3"}}); in TEST()
148 RunTest("\"quoted escaped quote\\\"\"", {}); in TEST()
149 RunTest("\"quoted escaped\\\" quote\"", {}); in TEST()
150 RunTest("\"\\\"quoted escaped quote\"", {}); in TEST()
152 RunTest("\"quoted control characters \\n \\r \\t \\\\ \\b \\\r \\\n \r \n\"", in TEST()
155 RunTest("\"quoted simple string\" \"second quoted string\"", in TEST()
158 RunTest("\"# comment quoted string\"", {{"# comment quoted string"}}); in TEST()
160 RunTest("\"Adjacent \"\"quoted strings\"", {{"Adjacent quoted strings"}}); in TEST()