diff options
author | Jason Perkins <starkos@industriousone.com> | 2011-01-18 20:25:43 +0300 |
---|---|---|
committer | Jason Perkins <starkos@industriousone.com> | 2011-01-18 20:25:43 +0300 |
commit | c4ae3d277b7d841b6476297a9cd9dbaa8fe7245e (patch) | |
tree | d6ef2a1dcc05e3a0a13df5f6ab0b6dd60c1a1ab0 /tests/base | |
parent | a0777e0de37607742b4af20de75984615b2b961d (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.lua | 4 |
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 |