Skip to content

Commit

Permalink
Adapt CoreTest to new error message
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jul 10, 2023
1 parent 1a4f2c1 commit 7542a3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/CoreTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1035,13 +1035,16 @@ TEST_CASE("no_file_ending", "[core]")
{
REQUIRE_THROWS_WITH(
Series("./new_openpmd_output", Access::CREATE),
Catch::Equals("Unknown file format! Did you specify a file ending?"));
Catch::Equals("Unknown file format! Did you specify a file ending? "
"Specified file name was './new_openpmd_output'."));
REQUIRE_THROWS_WITH(
Series("./new_openpmd_output_%T", Access::CREATE),
Catch::Equals("Unknown file format! Did you specify a file ending?"));
Catch::Equals("Unknown file format! Did you specify a file ending? "
"Specified file name was './new_openpmd_output_%T'."));
REQUIRE_THROWS_WITH(
Series("./new_openpmd_output_%05T", Access::CREATE),
Catch::Equals("Unknown file format! Did you specify a file ending?"));
Catch::Equals("Unknown file format! Did you specify a file ending? "
"Specified file name was './new_openpmd_output_%05T'."));
{
Series(
"../samples/no_extension_specified",
Expand Down

0 comments on commit 7542a3f

Please sign in to comment.