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);
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);
C-runtime library allocator.
A document for parsing JSON text as DOM.
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)
bool IterativeParseNext(InputStream &is, Handler &handler)
Parse one token from JSON text.
void IterativeParseInit()
Initialize JSON text token-by-token parsing.
RAPIDJSON_FORCEINLINE bool IterativeParseComplete() const
Check if token-by-token parsing JSON text is complete.
bool HasParseError() const
Whether a parse error has occurred in the last parsing.
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)
@ kParseDefaultFlags
Default parse flags. Can be customized by defining RAPIDJSON_PARSE_DEFAULT_FLAGS.
@ kParseIterativeFlag
Iterative(constant complexity in terms of function call stack size) parsing.