aboutsummaryrefslogtreecommitdiff
path: root/test/unit/path_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/path_spec.lua')
-rw-r--r--test/unit/path_spec.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unit/path_spec.lua b/test/unit/path_spec.lua
index 261d797624..239a255151 100644
--- a/test/unit/path_spec.lua
+++ b/test/unit/path_spec.lua
@@ -416,6 +416,14 @@ describe('more path function', function()
eq('unit-test-directory/test.file', (ffi.string(filename)))
eq(OK, result)
end)
+
+ it('works with directories that have one path component', function()
+ local force_expansion = 1
+ local filename = to_cstr('/tmp')
+ local result = path.vim_FullName(filename, buffer, len, force_expansion)
+ eq('/tmp', ffi.string(buffer))
+ eq(OK, result)
+ end)
end)
describe('path_fix_case', function()