23bool testJson(
const char *json,
size_t &line,
size_t &col) {
37 const char json[] =
"\"string\"\n\n:\"my string\",\"array\"\n:[\"1\", \"2\", \"3\"]}";
46 const char json[] =
"{\"string\n\n:\"my string\",\"array\"\n:[\"1\", \"2\", \"3\"]}";
55 const char json[] =
"{\"string\"\n\n\"my string\",\"array\"\n:[\"1\", \"2\", \"3\"]}";
64 const char json[] =
"{\"string\"\n\n:my string\",\"array\"\n:[\"1\", \"2\", \"3\"]}";
73 const char json[] =
"{\"string\"\n\n:\"my string\"\"array\"\n:[\"1\", \"2\", \"3\"]}";
82 const char json[] =
"{\"string\"\n\n:\"my string\",\"array\"\n:\"1\", \"2\", \"3\"]}";
91 const char json[] =
"{\"string\"\n\n:\"my string\",\"array\"\n:[\"1\" \"2\", \"3\"]}";
100 const char json8[] =
"{\"string\"\n\n:\"my string\",\"array\"\n:[\"1\", \"2\", \"3\"}";
109 const char json9[] =
"{\"string\"\n\n:\"my string\",\"array\"\n:[\"1\", \"2\", \"3\"]";
Cursor stream wrapper for counting line and column number if error exists.
size_t GetLine() const
Get the error line number, if error exists.
size_t GetColumn() const
Get the error column number, if error exists.
bool HasParseError() const
Whether a parse error has occurred in the last parsing.
GenericDocument & ParseStream(InputStream &is)
Parse JSON text from an input stream (with Encoding conversion)
bool testJson(const char *json, size_t &line, size_t &col)
#define EXPECT_EQ(val1, val2)
#define EXPECT_TRUE(condition)
#define TEST(test_case_name, test_name)