mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Rely on std::filesystem for file_utils (#3042)
Co-authored-by: Andrew Johnson <git.vyveu@simplelogin.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
a8768b7845
commit
8626ce5c43
7 changed files with 53 additions and 67 deletions
|
|
@ -30,3 +30,12 @@ TEST_CASE("Test file_exists")
|
|||
// Note: not clear how to portably test where a file should exist.
|
||||
REQUIRE(!file_exists("./should_not_exist/really_do_not_make_this_please"));
|
||||
}
|
||||
|
||||
TEST_CASE("Test dir_name")
|
||||
{
|
||||
REQUIRE(dir_name("") == "");
|
||||
REQUIRE(dir_name("/") == "/");
|
||||
REQUIRE(dir_name("hello") == "");
|
||||
REQUIRE(dir_name("hello/world") == "hello");
|
||||
REQUIRE(dir_name("/path/to/dir/") == "/path/to/dir");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue