Skip to content

Commit

Permalink
Only opt-into tests for TOML
Browse files Browse the repository at this point in the history
Has the same implementation as JSON anyway, and it makes tests run into
timeouts otherwise.
  • Loading branch information
franzpoeschel committed Feb 28, 2024
1 parent e09dc5a commit ea08dad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion examples/14_toml_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ void read()
{
"iteration_encoding": "variable_based",
"json": {
"mode": "template"
"dataset": {"mode": "template"},
"attribute": {"mode": "short"}
}
}
)";
Expand Down
10 changes: 9 additions & 1 deletion test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1558,7 +1558,15 @@ TEST_CASE("dtype_test", "[serial]")
{
for (auto const &t : testedFileExtensions())
{
dtype_test(t);
if (t == "json")
{
dtype_test(t);
dtype_test(t, R"(json.mode = "template")");
}
else
{
dtype_test(t);
}
}
dtype_test("json", R"(
{
Expand Down

0 comments on commit ea08dad

Please sign in to comment.