diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-10-02 02:42:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-02 02:42:33 +0200 |
commit | 01e53a5cbe676181629ef63731b980c453c0bd62 (patch) | |
tree | 0ee28dd373787791a12a977a2476ae0dd38e3edb /test/unit/path_spec.lua | |
parent | 981387b7c83026c1446cdddf6b374f63973a2b86 (diff) | |
parent | 6f7754dfa0c6a9ec2a1e7db3685ffd41b207b882 (diff) | |
download | rneovim-01e53a5cbe676181629ef63731b980c453c0bd62.tar.gz rneovim-01e53a5cbe676181629ef63731b980c453c0bd62.tar.bz2 rneovim-01e53a5cbe676181629ef63731b980c453c0bd62.zip |
Merge #7349 'win: more path-handling fixes'
Diffstat (limited to 'test/unit/path_spec.lua')
-rw-r--r-- | test/unit/path_spec.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/unit/path_spec.lua b/test/unit/path_spec.lua index a9cba7df84..befb204d0a 100644 --- a/test/unit/path_spec.lua +++ b/test/unit/path_spec.lua @@ -481,6 +481,20 @@ describe('path.c', function() eq('/tmp', ffi.string(buffer)) eq(OK, result) end) + + itp('expands "./" to the current directory #7117', function() + local force_expansion = 1 + local result = vim_FullName('./unit-test-directory/test.file', buffer, length, force_expansion) + eq(OK, result) + eq(lfs.currentdir() .. '/unit-test-directory/test.file', (ffi.string(buffer))) + end) + + itp('collapses "foo/../foo" to "foo" #7117', function() + local force_expansion = 1 + local result = vim_FullName('unit-test-directory/../unit-test-directory/test.file', buffer, length, force_expansion) + eq(OK, result) + eq(lfs.currentdir() .. '/unit-test-directory/test.file', (ffi.string(buffer))) + end) end) describe('path_fix_case', function() |