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

github.com/windirstat/premake-4.x-stable.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
commitc4ae3d277b7d841b6476297a9cd9dbaa8fe7245e (patch)
treed6ef2a1dcc05e3a0a13df5f6ab0b6dd60c1a1ab0 /tests/base
parenta0777e0de37607742b4af20de75984615b2b961d (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