Skip to content

Commit 7518036

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 2e81c3a commit 7518036

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

examples/14_toml_template.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ void read()
103103
{
104104
"iteration_encoding": "variable_based",
105105
"json": {
106-
"mode": "template"
106+
"dataset": {"mode": "template"},
107+
"attribute": {"mode": "short"}
107108
}
108109
}
109110
)";

test/SerialIOTest.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,7 +1535,15 @@ TEST_CASE("dtype_test", "[serial]")
15351535
{
15361536
for (auto const &t : testedFileExtensions())
15371537
{
1538-
dtype_test(t);
1538+
if (t == "json")
1539+
{
1540+
dtype_test(t);
1541+
dtype_test(t, R"(json.mode = "template")");
1542+
}
1543+
else
1544+
{
1545+
dtype_test(t);
1546+
}
15391547
}
15401548
dtype_test("json", R"(
15411549
{

0 commit comments

Comments
 (0)