Skip to content

Commit

Permalink
Test short attribute mode
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Aug 7, 2023
1 parent 0ac42ee commit 31fc86f
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,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())
Expand All @@ -1650,7 +1660,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"
}
}
})");
}
}

Expand All @@ -1659,7 +1679,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"];

Expand Down

0 comments on commit 31fc86f

Please sign in to comment.