@@ -1771,24 +1771,24 @@ inline void write_test(
17711771
17721772TEST_CASE (" write_test" , " [serial]" )
17731773{
1774- for (auto const &t : { std::string ( " json " )} )
1774+ for (auto const &t : testedFileExtensions () )
17751775 {
17761776 if (t == " json" )
17771777 {
1778- // write_test(
1779- // "template." + t,
1780- // R"(
1781- // {
1782- // "json": {
1783- // "dataset": {
1784- // "mode": "template"
1785- // },
1786- // "attribute": {
1787- // "mode": "short"
1788- // }
1789- // }
1790- // })",
1791- // false);
1778+ write_test (
1779+ " template." + t,
1780+ R"(
1781+ {
1782+ "json": {
1783+ "dataset": {
1784+ "mode": "template"
1785+ },
1786+ "attribute": {
1787+ "mode": "short"
1788+ }
1789+ }
1790+ })" ,
1791+ false );
17921792 write_test (
17931793 t,
17941794 R"(
@@ -1972,10 +1972,6 @@ inline void fileBased_write_test(const std::string &backend)
19721972 " \\ " ,
19731973 " /" ));
19741974
1975- // TODO: somehow make the rank table appear in iteration 1
1976- o.iterations [1 ];
1977- o.flush ();
1978-
19791975 ParticleSpecies &e_1 = o.iterations [1 ].particles [" e" ];
19801976
19811977 std::vector<double > position_global (4 );
@@ -2353,20 +2349,19 @@ inline void fileBased_write_test(const std::string &backend)
23532349
23542350TEST_CASE (" fileBased_write_test" , " [serial]" )
23552351{
2356- for (auto const &t : { " bp5 " } )
2352+ for (auto const &t : testedFileExtensions () )
23572353 {
23582354 fileBased_write_test (t);
23592355 }
2360- // if (auto extensions = getFileExtensions();
2361- // std::find(extensions.begin(), extensions.end(), "toml") !=
2362- // extensions.end())
2363- // { /*
2364- // * TOML backend is not generally tested for performance reasons, opt in
2365- // to
2366- // * testing it here.
2367- // */
2368- // fileBased_write_test("toml");
2369- // }
2356+ if (auto extensions = getFileExtensions ();
2357+ std::find (extensions.begin (), extensions.end (), " toml" ) !=
2358+ extensions.end ())
2359+ { /*
2360+ * TOML backend is not generally tested for performance reasons, opt in to
2361+ * testing it here.
2362+ */
2363+ fileBased_write_test (" toml" );
2364+ }
23702365}
23712366
23722367inline void sample_write_thetaMode (std::string const &file_ending)
0 commit comments