diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-09-18 15:12:12 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-09-18 15:12:12 -0300 |
commit | e80d7c0df7ec6e88a964e58d86a70c8f980e4cc1 (patch) | |
tree | 0037b05c1a27aaaf31c038a32f3a64100a8f3ccf /test/unit/path_spec.lua | |
parent | a4c41735359d0114e678cbf4888c514f604f01dd (diff) | |
parent | e897ccad3eb1eb8d423766300be9c6055fcd1d9f (diff) | |
download | rneovim-e80d7c0df7ec6e88a964e58d86a70c8f980e4cc1.tar.gz rneovim-e80d7c0df7ec6e88a964e58d86a70c8f980e4cc1.tar.bz2 rneovim-e80d7c0df7ec6e88a964e58d86a70c8f980e4cc1.zip |
Merge PR #3309 'Fixes for 0.1'
Diffstat (limited to 'test/unit/path_spec.lua')
-rw-r--r-- | test/unit/path_spec.lua | 8 |
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() |