Skip to content

Commit 3b76128

Browse files
committed
Test short attribute mode
1 parent e50dc67 commit 3b76128

File tree

1 file changed

+33
-3
lines changed

1 file changed

+33
-3
lines changed

test/SerialIOTest.cpp

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,17 @@ TEST_CASE("dtype_test", "[serial]")
15301530
{
15311531
dtype_test(t);
15321532
}
1533-
dtype_test("json", R"({"json":{"dataset":{"mode":"template"}}})");
1533+
dtype_test("json", R"(
1534+
{
1535+
"json": {
1536+
"dataset": {
1537+
"mode": "template"
1538+
},
1539+
"attribute": {
1540+
"mode": "short"
1541+
}
1542+
}
1543+
})");
15341544
if (auto extensions = getFileExtensions();
15351545
std::find(extensions.begin(), extensions.end(), "toml") !=
15361546
extensions.end())
@@ -1539,7 +1549,17 @@ TEST_CASE("dtype_test", "[serial]")
15391549
* testing it here.
15401550
*/
15411551
dtype_test("toml");
1542-
dtype_test("toml", R"({"toml":{"dataset":{"mode":"template"}}})");
1552+
dtype_test("toml", R"(
1553+
{
1554+
"toml": {
1555+
"dataset": {
1556+
"mode": "template"
1557+
},
1558+
"attribute": {
1559+
"mode": "short"
1560+
}
1561+
}
1562+
})");
15431563
}
15441564
}
15451565

@@ -1548,7 +1568,17 @@ inline void write_test(const std::string &backend)
15481568
Series o = Series(
15491569
"../samples/serial_write." + backend,
15501570
Access::CREATE,
1551-
R"({"json":{"dataset":{"mode":"template"}}})");
1571+
R"(
1572+
{
1573+
"json": {
1574+
"dataset": {
1575+
"mode": "template"
1576+
},
1577+
"attribute": {
1578+
"mode": "short"
1579+
}
1580+
}
1581+
})");
15521582

15531583
ParticleSpecies &e_1 = o.iterations[1].particles["e"];
15541584

0 commit comments

Comments
 (0)