From: sfan5 Date: Sun, 27 Nov 2016 17:38:28 +0000 (+0100) Subject: Fix filepath > RemoveRelativePathComponent unittest X-Git-Tag: 0.4.15~99 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=bb06d377a163b2d168c9d327ad38b871132fa8ea;p=oweals%2Fminetest.git Fix filepath > RemoveRelativePathComponent unittest (was broken by e4ee6548afd01040046ee3780d0fbb121d141251) --- diff --git a/src/unittest/test_filepath.cpp b/src/unittest/test_filepath.cpp index 6ea7ac076..5e3cdcc08 100644 --- a/src/unittest/test_filepath.cpp +++ b/src/unittest/test_filepath.cpp @@ -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 == "");