Skip to content

Commit 3ac448f

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 f017714 commit 3ac448f

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
@@ -108,7 +108,8 @@ void read()
108108
{
109109
"iteration_encoding": "variable_based",
110110
"json": {
111-
"mode": "template"
111+
"dataset": {"mode": "template"},
112+
"attribute": {"mode": "short"}
112113
}
113114
}
114115
)";

test/SerialIOTest.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,15 @@ TEST_CASE("dtype_test", "[serial]")
15721572
{
15731573
for (auto const &t : testedFileExtensions())
15741574
{
1575-
dtype_test(t);
1575+
if (t == "json")
1576+
{
1577+
dtype_test(t);
1578+
dtype_test(t, R"(json.mode = "template")");
1579+
}
1580+
else
1581+
{
1582+
dtype_test(t);
1583+
}
15761584
}
15771585
dtype_test("json", R"(
15781586
{

0 commit comments

Comments
 (0)