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>2011-01-18 20:25:43 +0300
committerJason Perkins <starkos@industriousone.com>2011-01-18 20:25:43 +0300
commitc9d4e88278f741c50737a2934300e138c420cd0b (patch)
treed6ef2a1dcc05e3a0a13df5f6ab0b6dd60c1a1ab0 /tests/base
parent1c06557bc9d207c3c9c10c24f19286d871ae2241 (diff)
Add test to ensure path.join() can be called with a nil argument
Diffstat (limited to 'tests/base')
-rw-r--r--tests/base/test_path.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/base/test_path.lua b/tests/base/test_path.lua
index 4a6580c..50126d5 100644
--- a/tests/base/test_path.lua
+++ b/tests/base/test_path.lua
@@ -171,6 +171,10 @@
test.isequal("trailing", path.join(".", "trailing"))
end
+ function suite.join_OnNilSecondPart()
+ test.isequal("leading", path.join("leading", nil))
+ end
+
--
-- path.rebase() tests