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

@@ -707,13 +707,13 @@ describe('API', function()
it('works', function()
api.nvim_set_current_dir('Xtestdir')
eq(fn.getcwd(), start_dir .. helpers.get_pathsep() .. 'Xtestdir')
eq(start_dir .. helpers.get_pathsep() .. 'Xtestdir', fn.getcwd())
end)
it('sets previous directory', function()
api.nvim_set_current_dir('Xtestdir')
command('cd -')
eq(fn.getcwd(), start_dir)
eq(start_dir, fn.getcwd())
end)
end)