File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -697,3 +697,15 @@ TEST_CASE( "no_file_ending", "[core]" )
697
697
REQUIRE_THROWS_WITH (Series (" ./new_openpmd_output_%05T" , AccessType::CREATE),
698
698
Catch::Equals (" Unknown file format! Did you specify a file ending?" ));
699
699
}
700
+
701
+ TEST_CASE ( " fancy_paths" , " [core]" )
702
+ {
703
+ auto a = Series (" moreOutput/this/is-quite-sophisticated.N02.mine/output/json/data_%05T.json" , AccessType::CREATE);
704
+ a.iterations [0 ].meshes [" test" ][" x" ].resetDataset (Dataset (Datatype::DOUBLE, {4 })).makeConstant <float >(42 .);
705
+
706
+ auto b = Series (" ./moreOutput/even/more/con-fusing.N02.json/outputs/json/data_%05T.json" , AccessType::CREATE);
707
+ b.iterations [0 ].meshes [" test" ][" x" ].resetDataset (Dataset (Datatype::DOUBLE, {4 })).makeConstant <float >(42 .);
708
+
709
+ auto c = Series (" moreOutput/my data can space/data_%05T.json" , AccessType::CREATE);
710
+ c.iterations [0 ].meshes [" test" ][" x" ].resetDataset (Dataset (Datatype::DOUBLE, {4 })).makeConstant <float >(42 .);
711
+ }
You can’t perform that action at this time.
0 commit comments