Fix filepath > RemoveRelativePathComponent unittest
authorsfan5 <sfan5@live.de>
Sun, 27 Nov 2016 17:38:28 +0000 (18:38 +0100)
committersfan5 <sfan5@live.de>
Sun, 27 Nov 2016 17:39:00 +0000 (18:39 +0100)
(was broken by e4ee6548afd01040046ee3780d0fbb121d141251)

src/unittest/test_filepath.cpp

index 6ea7ac0768d3c3b20a2f28c267b2082747b08176..5e3cdcc089fbf86659bb4ecdaba06ac81bb1b3d9 100644 (file)
@@ -251,7 +251,7 @@ void TestFilePath::testRemoveRelativePathComponent()
        UASSERT(result == p("/home/user/minetest/worlds/world1"));
        path = p(".");
        result = fs::RemoveRelativePathComponents(path);
-       UASSERT(result == "");
+       UASSERT(result == ".");
        path = p("./subdir/../..");
        result = fs::RemoveRelativePathComponents(path);
        UASSERT(result == "");