From 31333517c4c585f77acd2e29b1c7d48225207ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 20 Mar 2023 12:19:54 +0100 Subject: [PATCH] Only opt-into tests for TOML Has the same implementation as JSON anyway, and it makes tests run into timeouts otherwise. --- examples/14_toml_template.cpp | 3 ++- test/SerialIOTest.cpp | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/examples/14_toml_template.cpp b/examples/14_toml_template.cpp index 366323ee21..1d3d2f9f8d 100644 --- a/examples/14_toml_template.cpp +++ b/examples/14_toml_template.cpp @@ -103,7 +103,8 @@ void read() { "iteration_encoding": "variable_based", "json": { - "mode": "template" + "dataset": {"mode": "template"}, + "attribute": {"mode": "short"} } } )"; diff --git a/test/SerialIOTest.cpp b/test/SerialIOTest.cpp index 9b9d56b5a1..9d73cc924b 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -1589,7 +1589,15 @@ TEST_CASE("dtype_test", "[serial]") { for (auto const &t : testedFileExtensions()) { - dtype_test(t); + if (t == "json") + { + dtype_test(t); + dtype_test(t, R"(json.mode = "template")"); + } + else + { + dtype_test(t); + } } dtype_test("json", R"( {