diff options
author | Philipp A. Hartmann <pah@qo.cx> | 2014-08-11 17:26:17 +0400 |
---|---|---|
committer | Philipp A. Hartmann <pah@qo.cx> | 2014-08-11 19:14:31 +0400 |
commit | c0c0c398b6f9c630323216775dbf08b775dbce63 (patch) | |
tree | 13bec218a6105df669a8a0a23b20897dfaa2b550 /test | |
parent | c9f2715115cdab136fa156d82ac7db4ab07c2c05 (diff) |
jsoncheckertest: skip "fail1.json", as it is now accepted by RapidJSON
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest/jsoncheckertest.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unittest/jsoncheckertest.cpp b/test/unittest/jsoncheckertest.cpp index d6615282..75ef3e8f 100644 --- a/test/unittest/jsoncheckertest.cpp +++ b/test/unittest/jsoncheckertest.cpp @@ -46,6 +46,8 @@ TEST(JsonChecker, Reader) { // jsonchecker/failXX.json
for (int i = 1; i <= 33; i++) {
+ if (i == 1) // fail1.json is valid in rapidjson, which has no limitation on type of root element (RFC 7159).
+ continue;
if (i == 18) // fail18.json is valid in rapidjson, which has no limitation on depth of nesting.
continue;
@@ -57,14 +59,15 @@ TEST(JsonChecker, Reader) { json = ReadFile(filename, length);
if (!json) {
printf("jsonchecker file %s not found", filename);
+ ADD_FAILURE();
continue;
}
}
GenericDocument<UTF8<>, CrtAllocator> document; // Use Crt allocator to check exception-safety (no memory leak)
if (!document.Parse((const char*)json).HasParseError())
- FAIL();
- //printf("%s(%u):%s\n", filename, (unsigned)document.GetErrorOffset(), document.GetParseError());
+ ADD_FAILURE_AT(filename, document.GetErrorOffset());
+
free(json);
}
|