Skip to content

Commit

Permalink
capture values
Browse files Browse the repository at this point in the history
  • Loading branch information
fbergmann committed Apr 7, 2024
1 parent 1352806 commit 6215010
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/copasijs_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ TEST_CASE("Load COVID Model", "[copasijs]")

// ensure that time is again 0
selectionValues = getSelectionValues();
CAPTURE(selectionValues);
REQUIRE(selectionValues.size() == 5);
REQUIRE_THAT(selectionValues, Catch::Matchers::Approx(std::vector<double>{0.0, 0.999999875, 0.000000125, 0.0, 0.012372199}));

Expand All @@ -137,6 +138,8 @@ TEST_CASE("Load COVID Model", "[copasijs]")
CAPTURE(data);
auto json = nlohmann::json::parse(data);
REQUIRE(json["titles"][0] == "Time");
CAPTURE(json["titles"][0]);
CAPTURE(json["titles"][0].size());
REQUIRE(json["columns"][0].size() == 38);

// once done destroy the API
Expand Down

0 comments on commit 6215010

Please sign in to comment.