aboutsummaryrefslogtreecommitdiff
path: root/test/unit/path_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-10-02 00:24:19 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-10-02 01:46:16 +0200
commit6f7754dfa0c6a9ec2a1e7db3685ffd41b207b882 (patch)
tree0ee28dd373787791a12a977a2476ae0dd38e3edb /test/unit/path_spec.lua
parente9dba214eada40a2d64b89616f1799b87cab1e5e (diff)
downloadrneovim-6f7754dfa0c6a9ec2a1e7db3685ffd41b207b882.tar.gz
rneovim-6f7754dfa0c6a9ec2a1e7db3685ffd41b207b882.tar.bz2
rneovim-6f7754dfa0c6a9ec2a1e7db3685ffd41b207b882.zip
test: avoid extra clear() calls
also: various other cleanup
Diffstat (limited to 'test/unit/path_spec.lua')
-rw-r--r--test/unit/path_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/path_spec.lua b/test/unit/path_spec.lua
index 0400747e72..befb204d0a 100644
--- a/test/unit/path_spec.lua
+++ b/test/unit/path_spec.lua
@@ -482,14 +482,14 @@ describe('path.c', function()
eq(OK, result)
end)
- itp('works with a relative path with the current directory prefix #7117', function()
+ 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('works with a relative path with the directory name mentioned twice #7117', function()
+ 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)