Fix sign comparison warnings, and parser confusion
parent
df1fdbfd79
commit
4597f98abe
3
test.cpp
3
test.cpp
|
@ -87,6 +87,7 @@ int main(int argc, char **argv) {
|
||||||
string failing_comment_test = R"({
|
string failing_comment_test = R"({
|
||||||
/* bad comment
|
/* bad comment
|
||||||
"a": 1,
|
"a": 1,
|
||||||
|
// another comment to make C parsers which don't understand raw strings happy */
|
||||||
})";
|
})";
|
||||||
|
|
||||||
string err_failing_comment;
|
string err_failing_comment;
|
||||||
|
@ -209,7 +210,7 @@ int main(int argc, char **argv) {
|
||||||
auto res = Json::parse_multi(tst.input, parser_stop_pos, err);
|
auto res = Json::parse_multi(tst.input, parser_stop_pos, err);
|
||||||
assert(parser_stop_pos == tst.expect_parser_stop_pos);
|
assert(parser_stop_pos == tst.expect_parser_stop_pos);
|
||||||
assert(
|
assert(
|
||||||
std::count_if(res.begin(), res.end(),
|
(size_t)std::count_if(res.begin(), res.end(),
|
||||||
[](const Json& j) { return !j.is_null(); })
|
[](const Json& j) { return !j.is_null(); })
|
||||||
== tst.expect_not_empty_elms_count);
|
== tst.expect_not_empty_elms_count);
|
||||||
if (!res.empty()) {
|
if (!res.empty()) {
|
||||||
|
|
Loading…
Reference in New Issue