Skip to content

Commit cf5c134

Browse files
committed
Only opt-into tests for TOML
Has the same implementation as JSON anyway, and it makes tests run into timeouts otherwise.
1 parent 1c7f9e4 commit cf5c134

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

examples/14_toml_template.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ void read()
8585
{
8686
"iteration_encoding": "variable_based",
8787
"json": {
88-
"mode": "template"
88+
"dataset": {"mode": "template"},
89+
"attribute": {"mode": "short"}
8990
}
9091
}
9192
)";

test/SerialIOTest.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1646,7 +1646,15 @@ TEST_CASE("dtype_test", "[serial]")
16461646
{
16471647
for (auto const &t : testedFileExtensions())
16481648
{
1649-
dtype_test(t);
1649+
if (t == "json")
1650+
{
1651+
dtype_test(t);
1652+
dtype_test(t, R"(json.mode = "template")");
1653+
}
1654+
else
1655+
{
1656+
dtype_test(t);
1657+
}
16501658
}
16511659
dtype_test("json", R"(toml.dataset.mode = "template")");
16521660
if (auto extensions = getFileExtensions();

0 commit comments

Comments
 (0)