We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ddef68 commit 2efe1f5Copy full SHA for 2efe1f5
1 file changed
test/fs/unit/path_test.cpp
@@ -42,6 +42,14 @@ CASE("Path can be constructed with initializer list")
42
EXPECT(path.to_string() == "/Users/Bjarne/Documents/");
43
}
44
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
+
53
CASE("Paths can be checked for equality")
54
{
55
fs::Path src_path {"/etc"};
0 commit comments