We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628c11d commit 5a5a869Copy full SHA for 5a5a869
src/libutil-tests/file-system.cc
@@ -261,4 +261,18 @@ TEST(pathExists, bogusPathDoesNotExist)
261
{
262
ASSERT_FALSE(pathExists("/schnitzel/darmstadt/pommes"));
263
}
264
+
265
+/* ----------------------------------------------------------------------------
266
+ * makeParentCanonical
267
+ * --------------------------------------------------------------------------*/
268
269
+TEST(makeParentCanonical, noParent)
270
+{
271
+ ASSERT_EQ(makeParentCanonical("file"), absPath(std::filesystem::path("file")));
272
+}
273
274
+TEST(makeParentCanonical, root)
275
276
+ ASSERT_EQ(makeParentCanonical("/"), "/");
277
278
0 commit comments