From 3b7612846149dd4bc6ebd1c3e7a7031f38801488 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Mon, 7 Aug 2023 11:04:07 +0200 Subject: [PATCH] Test short attribute mode --- test/SerialIOTest.cpp | 36 +++++++++++++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 3 deletions(-) diff --git a/test/SerialIOTest.cpp b/test/SerialIOTest.cpp index e2b792293d..93a233da75 100644 --- a/test/SerialIOTest.cpp +++ b/test/SerialIOTest.cpp @@ -1530,7 +1530,17 @@ TEST_CASE("dtype_test", "[serial]") { dtype_test(t); } - dtype_test("json", R"({"json":{"dataset":{"mode":"template"}}})"); + dtype_test("json", R"( +{ + "json": { + "dataset": { + "mode": "template" + }, + "attribute": { + "mode": "short" + } + } +})"); if (auto extensions = getFileExtensions(); std::find(extensions.begin(), extensions.end(), "toml") != extensions.end()) @@ -1539,7 +1549,17 @@ TEST_CASE("dtype_test", "[serial]") * testing it here. */ dtype_test("toml"); - dtype_test("toml", R"({"toml":{"dataset":{"mode":"template"}}})"); + dtype_test("toml", R"( +{ + "toml": { + "dataset": { + "mode": "template" + }, + "attribute": { + "mode": "short" + } + } +})"); } } @@ -1548,7 +1568,17 @@ inline void write_test(const std::string &backend) Series o = Series( "../samples/serial_write." + backend, Access::CREATE, - R"({"json":{"dataset":{"mode":"template"}}})"); + R"( +{ + "json": { + "dataset": { + "mode": "template" + }, + "attribute": { + "mode": "short" + } + } +})"); ParticleSpecies &e_1 = o.iterations[1].particles["e"];