Skip to content

Commit 94f2797

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 604c553 commit 94f2797

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
@@ -1540,7 +1540,15 @@ TEST_CASE("dtype_test", "[serial]")
15401540
{
15411541
for (auto const &t : testedFileExtensions())
15421542
{
1543-
dtype_test(t);
1543+
if (t == "json")
1544+
{
1545+
dtype_test(t);
1546+
dtype_test(t, R"(json.mode = "template")");
1547+
}
1548+
else
1549+
{
1550+
dtype_test(t);
1551+
}
15441552
}
15451553
dtype_test("json", R"(
15461554
{

0 commit comments

Comments
 (0)