mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Fix filepath > RemoveRelativePathComponent unittest
(was broken by e4ee6548af
)
This commit is contained in:
@@ -251,7 +251,7 @@ void TestFilePath::testRemoveRelativePathComponent()
|
|||||||
UASSERT(result == p("/home/user/minetest/worlds/world1"));
|
UASSERT(result == p("/home/user/minetest/worlds/world1"));
|
||||||
path = p(".");
|
path = p(".");
|
||||||
result = fs::RemoveRelativePathComponents(path);
|
result = fs::RemoveRelativePathComponents(path);
|
||||||
UASSERT(result == "");
|
UASSERT(result == ".");
|
||||||
path = p("./subdir/../..");
|
path = p("./subdir/../..");
|
||||||
result = fs::RemoveRelativePathComponents(path);
|
result = fs::RemoveRelativePathComponents(path);
|
||||||
UASSERT(result == "");
|
UASSERT(result == "");
|
||||||
|
Reference in New Issue
Block a user