test: correct order of arguments to eq() (#27816)

This commit is contained in:
zeertzjq
2024-03-11 22:23:14 +08:00
committed by GitHub
parent 0f20b7d803
commit 1da0f3494e
22 changed files with 85 additions and 85 deletions

View File

@@ -28,7 +28,7 @@ describe('tempfile related functions', function()
assert.True(dir ~= nil and dir:len() > 0)
-- os_file_is_writable returns 2 for a directory which we have rights
-- to write into.
eq(lib.os_file_is_writable(helpers.to_cstr(dir)), 2)
eq(2, lib.os_file_is_writable(helpers.to_cstr(dir)))
for entry in vim.fs.dir(dir) do
assert.True(entry == '.' or entry == '..')
end
@@ -57,7 +57,7 @@ describe('tempfile related functions', function()
itp('generate file name in Nvim own temp directory', function()
local dir = vim_gettempdir()
local file = vim_tempname()
eq(string.sub(file, 1, string.len(dir)), dir)
eq(dir, string.sub(file, 1, string.len(dir)))
end)
end)
end)