Minor typo. (#1721)

* Minor typo.

* Minor fixes.

* Patching...
This commit is contained in:
Daniel Lemire 2021-09-25 11:34:44 -04:00 committed by GitHub
parent d56fdc3d04
commit d996ffc494
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -875,7 +875,7 @@ namespace document_stream_tests {
total_count++; total_count++;
bool_count += doc.is_bool(); bool_count += doc.is_bool();
} }
return (bool_count == 0) && (bool_count == 0); return (bool_count == 0) && (total_count == 1);
} }
bool baby_fuzzer() { bool baby_fuzzer() {

View File

@ -524,12 +524,19 @@ namespace document_stream_tests {
total_count++; total_count++;
bool b; bool b;
if(doc.get_bool().get(b) == SUCCESS) { bool_count +=b; } if(doc.get_bool().get(b) == SUCCESS) { bool_count +=b; }
// If we don't access the document at all, other than get_bool(),
// then some simdjson kernels will allow you to iterate through
// 3 'documents'. By asking for the type, we make the iteration
// terminate after the first 'document'.
ondemand::json_type t;
if(doc.type().get(t) != SUCCESS) { break; }
} }
return (bool_count == 0) && (bool_count == 0); return (bool_count == 0) && (total_count == 1);
} }
bool run() { bool run() {
return return
fuzzaccess() &&
issue1683() && issue1683() &&
issue1668() && issue1668() &&
issue1668_long() && issue1668_long() &&