Skip to content

Commit

Permalink
CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Dec 16, 2024
1 parent 7f81e62 commit d52c6fa
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/JSONTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ void test_matrix_impl(
template <typename Callable, typename... Args>
void test_matrix(Callable &&callable, std::vector<Args> const &...matrix)
{
// no std::forward, callable is called multiple times, so the impl takes
// a simple reference
test_matrix_impl(callable, std::tuple<>(), matrix...);
}
} // namespace auxiliary
Expand Down Expand Up @@ -378,13 +380,14 @@ void json_short_modes(

auto explicitly_templated = iteration.meshes["explicitly_templated"];
Dataset ds2 = ds1;
ds2.options = backend + R"(.dataset.mode = "template")";
ds2.options =
R"({")" + backend + R"(": {"dataset": {"mode": "template"}}})";
explicitly_templated.resetDataset(ds2);

auto explicitly_not_templated =
iteration.meshes["explicitly_not_templated"];
Dataset ds3 = ds1;
ds3.options = backend + R"(.dataset.mode = "dataset")";
ds3.options = R"({")" + backend + R"(": {"dataset": {"mode": "dataset"}}})";
explicitly_not_templated.resetDataset(ds3);

auto undefined_dataset = iteration.meshes["undefined_dataset"];
Expand Down Expand Up @@ -445,11 +448,13 @@ void json_short_modes(
{
REQUIRE(j["data"] == nlohmann::json::array_t{0, 0, 0, 0, 0});
}
// `data` key, `datatype` key, and `attributes` key
REQUIRE(j.size() == 3);
};
auto verify_template_dataset = [](nlohmann::json const &j) {
REQUIRE(j["datatype"] == "INT");
REQUIRE(j["extent"] == nlohmann::json::array_t{5});
// `extent` key, `datatype` key, and `attributes` key
REQUIRE(j.size() == 3);
};

Expand Down

0 comments on commit d52c6fa

Please sign in to comment.