Skip to content

Commit 3133351

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 b32475c commit 3133351

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
@@ -1589,7 +1589,15 @@ TEST_CASE("dtype_test", "[serial]")
15891589
{
15901590
for (auto const &t : testedFileExtensions())
15911591
{
1592-
dtype_test(t);
1592+
if (t == "json")
1593+
{
1594+
dtype_test(t);
1595+
dtype_test(t, R"(json.mode = "template")");
1596+
}
1597+
else
1598+
{
1599+
dtype_test(t);
1600+
}
15931601
}
15941602
dtype_test("json", R"(
15951603
{

0 commit comments

Comments
 (0)