tests: improve error message with literat "~" directory (#11032)

This commit is contained in:
Daniel Hahler
2019-09-17 00:39:33 +02:00
committed by GitHub
parent 4b2d7bb5ea
commit 0b71bb73e8
2 changed files with 2 additions and 2 deletions

View File

@@ -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