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 18, 2023
1 parent e50dc67 commit 3b76128
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 @@ -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())
Expand All @@ -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"
}
}
})");
}
}

Expand All @@ -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"];

Expand Down

0 comments on commit 3b76128

Please sign in to comment.