Skip to content

Commit

Permalink
Remove json_parser cr state
Browse files Browse the repository at this point in the history
  • Loading branch information
danielaparker committed Nov 16, 2024
1 parent a7ab110 commit f2aa1c2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/corelib/src/json_reader_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,18 +340,18 @@ TEST_CASE("json_reader json lines")
json_decoder<json> decoder;
json_stream_reader reader(is, decoder);

CHECK(!reader.eof());
REQUIRE(!reader.eof());
reader.read_next();
CHECK(!reader.eof());
CHECK(decoder.get_result() == json::parse(R"(["Name", "Session", "Score", "Completed"])"));
REQUIRE(!reader.eof());
reader.read_next();
CHECK(!reader.eof());
REQUIRE(!reader.eof());
reader.read_next();
CHECK(!reader.eof());
REQUIRE(!reader.eof());
reader.read_next();
CHECK(!reader.eof());
reader.read_next();
CHECK(!reader.eof());
REQUIRE(!reader.eof());
reader.read_next();
CHECK(decoder.get_result() == json::parse(R"(["Deloise", "2012A", 19, true])"));
CHECK(reader.eof());
}
}
Expand Down

0 comments on commit f2aa1c2

Please sign in to comment.