diff options
Diffstat (limited to 'tests/modules/path/test.lua')
| -rw-r--r-- | tests/modules/path/test.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/modules/path/test.lua b/tests/modules/path/test.lua index 4217dec16..80e87c5aa 100644 --- a/tests/modules/path/test.lua +++ b/tests/modules/path/test.lua @@ -24,4 +24,12 @@ function test_splitenv_unix(t) t:are_equal(path.splitenv('a%tag:b%tag'), {'a','b'}) t:are_equal(path.splitenv('a%tag:b%%tag%%'), {'a','b'}) t:are_equal(path.splitenv('a%tag:b:%tag:'), {'a','b'}) -end
\ No newline at end of file +end + +function test_extension(t) + t:are_equal(path.extension("1.1/abc"), "") + t:are_equal(path.extension("1.1\\abc"), "") + t:are_equal(path.extension("foo.so"), ".so") + t:are_equal(path.extension("/home/foo.so"), ".so") + t:are_equal(path.extension("\\home\\foo.so"), ".so") +end |
