Skip to content

Commit

Permalink
Add more dump tests
Browse files Browse the repository at this point in the history
  • Loading branch information
st235 committed Jun 29, 2024
1 parent ec6d575 commit caf12cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/json_dump_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ INSTANTIATE_TEST_SUITE_P(
JsonDumpTests,
JsonDumpsTestingFixture,
::testing::Values(
// primitives
std::make_pair(json::Json::null(), "null")
std::make_pair(json::Json::null(), "null"),
std::make_pair(json::Json(2.0), "2"),
std::make_pair(json::Json({ json::Json(true), json::Json(5.0), json::Json(static_cast<std::string>("Hello")) }), R"([true,5,"Hello"])")
)
);

Expand Down

0 comments on commit caf12cc

Please sign in to comment.