Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Perkins <starkos@industriousone.com>2010-10-21 03:52:32 +0400
committerJason Perkins <starkos@industriousone.com>2010-10-21 03:52:32 +0400
commit6da53232244f888750bb8aa6c3d70eb4a3072516 (patch)
treeda1da5cff96a5d0c319b8a9abf3b4b086f01dc74 /tests/base
parente52f458c6c0406b27c3fcf8c2a415f9c0f2096da (diff)
Bug 3016050: {"../Dir/file1.c","../../Dir/file2.c"} breaks Xcode (Stephane)
Diffstat (limited to 'tests/base')
-rw-r--r--tests/base/test_tree.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/base/test_tree.lua b/tests/base/test_tree.lua
index da13b86..bbc4add 100644
--- a/tests/base/test_tree.lua
+++ b/tests/base/test_tree.lua
@@ -68,6 +68,16 @@
tree.add(tr, "MyProject/../hello")
test.isequal("MyProject>hello", getresult())
end
+
+ function suite.AddsNodes_OnDifferentParentLevel()
+ tree.add(tr, "../Common")
+ tree.add(tr, "../../Common")
+ test.isequal(2, #tr.children)
+ test.isequal("Common", tr.children[1].name)
+ test.isequal("Common", tr.children[2].name)
+ test.isequal("../Common", tr.children[1].path)
+ test.isequal("../../Common", tr.children[2].path)
+ end
--