diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-10-09 21:17:15 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-10-09 21:17:15 +0800 |
commit | 2abd939daeb550e745ba3e6572fae24aff105ef9 (patch) | |
tree | 9850ffe239203a5b980ef16a41e2dd9669b0f2a1 /test/unit/path_spec.lua | |
parent | 5d369ad3843bbc0a3541827284f55430ec4f46e4 (diff) | |
parent | ceb40c0411843b35005f019bf2c61f22572afcdf (diff) | |
download | rneovim-2abd939daeb550e745ba3e6572fae24aff105ef9.tar.gz rneovim-2abd939daeb550e745ba3e6572fae24aff105ef9.tar.bz2 rneovim-2abd939daeb550e745ba3e6572fae24aff105ef9.zip |
Merge branch 'master' of github.com:ckelsel/neovim into vim-8.0.0101
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() |