aboutsummaryrefslogtreecommitdiff
path: root/test/functional/options/defaults_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-11 22:23:14 +0800
committerGitHub <noreply@github.com>2024-03-11 22:23:14 +0800
commit1da0f3494eb042c84ae5f00654878f7f8cedf3b7 (patch)
tree6f0ffb0220113945b77308c01842446d1f12fcc2 /test/functional/options/defaults_spec.lua
parent0f20b7d803779950492c2838e2b042a38f4ee22f (diff)
downloadrneovim-1da0f3494eb042c84ae5f00654878f7f8cedf3b7.tar.gz
rneovim-1da0f3494eb042c84ae5f00654878f7f8cedf3b7.tar.bz2
rneovim-1da0f3494eb042c84ae5f00654878f7f8cedf3b7.zip
test: correct order of arguments to eq() (#27816)
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r--test/functional/options/defaults_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua
index d27fa375ee..a7cdc5f9fa 100644
--- a/test/functional/options/defaults_spec.lua
+++ b/test/functional/options/defaults_spec.lua
@@ -1243,11 +1243,11 @@ describe('autocommands', function()
command('au BufEnter * let g:n = g:n + 1')
command('terminal')
- eq(eval('get(g:, "n", 0)'), 1)
+ eq(1, eval('get(g:, "n", 0)'))
helpers.retry(nil, 1000, function()
- neq(api.nvim_get_option_value('buftype', { buf = 0 }), 'terminal')
- eq(eval('get(g:, "n", 0)'), 2)
+ neq('terminal', api.nvim_get_option_value('buftype', { buf = 0 }))
+ eq(2, eval('get(g:, "n", 0)'))
end)
end)
end)