Lines Matching refs:ExpectErr
194 auto ExpectErr = [](llvm::StringRef Msg, llvm::StringRef S) { in TEST() local
204 ExpectErr("Unexpected EOF", ""); in TEST()
205 ExpectErr("Unexpected EOF", "["); in TEST()
206 ExpectErr("Text after end of document", "[][]"); in TEST()
207 ExpectErr("Invalid JSON value (false?)", "fuzzy"); in TEST()
208 ExpectErr("Expected , or ]", "[2?]"); in TEST()
209 ExpectErr("Expected object key", "{a:2}"); in TEST()
210 ExpectErr("Expected : after object key", R"({"a",2})"); in TEST()
211 ExpectErr("Expected , or } after object property", R"({"a":2 "b":3})"); in TEST()
212 ExpectErr("Invalid JSON value", R"([&%!])"); in TEST()
213 ExpectErr("Invalid JSON value (number?)", "1e1.0"); in TEST()
214 ExpectErr("Unterminated string", R"("abc\"def)"); in TEST()
215 ExpectErr("Control character in string", "\"abc\ndef\""); in TEST()
216 ExpectErr("Invalid escape sequence", R"("\030")"); in TEST()
217 ExpectErr("Invalid \\u escape sequence", R"("\usuck")"); in TEST()
218 ExpectErr("[3:3, byte=19]", R"({ in TEST()
222 ExpectErr("Invalid UTF-8 sequence", "\"\xC0\x80\""); // WTF-8 null in TEST()