Go to the source code of this file.
◆ TEST()
Definition at line 69 of file jsoncheckertest.cpp.
73 for (
int i = 1; i <= 33; i++) {
79 sprintf(filename,
"fail%d.json", i);
81 char*
json = ReadFile(filename, length);
83 printf(
"jsonchecker file %s not found", filename);
101 reader.IterativeParseInit();
102 while (!reader.IterativeParseComplete()) {
112 for (
int i = 1; i <= 3; i++) {
113 sprintf(filename,
"pass%d.json", i);
115 char*
json = ReadFile(filename, length);
117 printf(
"jsonchecker file %s not found", filename);
134 reader.IterativeParseInit();
135 while (!reader.IterativeParseComplete()) {
Iterative(constant complexity in terms of function call stack size) parsing.
#define EXPECT_TRUE(condition)
C-runtime library allocator.
Default parse flags. Can be customized by defining RAPIDJSON_PARSE_DEFAULT_FLAGS. ...
bool HasParseError() const
Whether a parse error has occurred in the last parsing.
GenericDocument & Parse(const typename SourceEncoding::Ch *str)
Parse JSON text from a read-only string (with Encoding conversion)
#define EXPECT_FALSE(condition)
A document for parsing JSON text as DOM.