Skip to content

Commit 2efe1f5

Browse files
committed
test: added path unit test case
1 parent 5ddef68 commit 2efe1f5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/fs/unit/path_test.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ CASE("Path can be constructed with initializer list")
4242
EXPECT(path.to_string() == "/Users/Bjarne/Documents/");
4343
}
4444

45+
CASE("Path by default is constructed as \"/\"")
46+
{
47+
fs::Path path;
48+
EXPECT(path.to_string() == "/");
49+
EXPECT(path.empty() == true);
50+
EXPECT(path.size() == 0u);
51+
}
52+
4553
CASE("Paths can be checked for equality")
4654
{
4755
fs::Path src_path {"/etc"};

0 commit comments

Comments
 (0)