projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
785a9a6
)
Fix filepath > RemoveRelativePathComponent unittest
author
sfan5
<sfan5@live.de>
Sun, 27 Nov 2016 17:38:28 +0000
(18:38 +0100)
committer
sfan5
<sfan5@live.de>
Sun, 27 Nov 2016 17:39:00 +0000
(18:39 +0100)
(was broken by
e4ee6548afd01040046ee3780d0fbb121d141251
)
src/unittest/test_filepath.cpp
patch
|
blob
|
history
diff --git
a/src/unittest/test_filepath.cpp
b/src/unittest/test_filepath.cpp
index 6ea7ac0768d3c3b20a2f28c267b2082747b08176..5e3cdcc089fbf86659bb4ecdaba06ac81bb1b3d9 100644
(file)
--- 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 == "");