Adding more tests.

This commit is contained in:
Daniel Lemire
2018-12-06 17:22:22 -05:00
parent 196c41e3bc
commit e2d2d2f8ff
6 changed files with 175 additions and 2 deletions
+2
View File
@@ -170,6 +170,8 @@ bool unified_machine(const u8 *buf, size_t len, ParsedJson &pj) {
}
#ifdef SIMDJSON_ALLOWANYTHINGINROOT
depth--; // for fall-through cases (e.g., documents containing just a string)
pj.annotate_previousloc(pj.containing_scope_offset[depth],
pj.get_current_loc());
#endif // ALLOWANYTHINGINROOT
start_continue: