mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 03:17:23 +10:00
tests: improve error message with literat "~" directory (#11032)
This commit is contained in:
@@ -110,7 +110,7 @@ describe('fs.c', function()
|
||||
|
||||
describe('os_chdir', function()
|
||||
itp('fails with path="~"', function()
|
||||
eq(false, os_isdir('~')) -- sanity check: no literal "~" directory.
|
||||
eq(false, os_isdir('~'), 'sanity check: no literal "~" directory')
|
||||
local length = 4096
|
||||
local expected_cwd = cstr(length, '')
|
||||
local cwd = cstr(length, '')
|
||||
|
||||
@@ -456,7 +456,7 @@ describe('path.c', function()
|
||||
end)
|
||||
|
||||
itp('fails and uses filename when the path is relative to HOME', function()
|
||||
eq(false, cimp.os_isdir('~')) -- sanity check: no literal "~" directory.
|
||||
eq(false, cimp.os_isdir('~'), 'sanity check: no literal "~" directory')
|
||||
local absolute_path = '~/home.file'
|
||||
local buflen = string.len(absolute_path) + 1
|
||||
local do_expand = 1
|
||||
|
||||
Reference in New Issue
Block a user