Skip to content

Commit

Permalink
Only opt-into tests for TOML
Browse files Browse the repository at this point in the history
Has the same implementation as JSON anyway, and it makes tests run into
timeouts otherwise.
  • Loading branch information
franzpoeschel committed Apr 11, 2023
1 parent 9e6f065 commit 735a117
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ std::vector<std::string> testedFileExtensions()
allExtensions.begin(), allExtensions.end(), [](std::string const &ext) {
// sst and ssc need a receiver for testing
// bp4 is already tested via bp
return ext == "sst" || ext == "ssc" || ext == "bp4";
return ext == "sst" || ext == "ssc" || ext == "bp4" ||
ext == "toml";
});
return {allExtensions.begin(), newEnd};
}
Expand Down Expand Up @@ -1622,16 +1623,13 @@ TEST_CASE("dtype_test", "[serial]")
dtype_test(t);
dtype_test(t, R"(json.mode = "template")");
}
else if (t == "toml")
{
dtype_test(t);
dtype_test(t, R"(toml.mode = "template")");
}
else
{
dtype_test(t);
}
}
dtype_test("toml");
dtype_test("toml", R"(toml.mode = "template")");
}

inline void write_test(const std::string &backend)
Expand Down

0 comments on commit 735a117

Please sign in to comment.