From c708061a5a9b1bb75f06c6de0b5c02f3a0abad4d Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Tue, 8 Sep 2015 11:13:42 -0300 Subject: os/path: Fix path_get_absolute_path for top-level paths Close #2833 --- test/unit/path_spec.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/unit/path_spec.lua') 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() -- cgit