diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2024-03-11 22:23:14 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-11 22:23:14 +0800 |
| commit | 1da0f3494eb042c84ae5f00654878f7f8cedf3b7 (patch) | |
| tree | 6f0ffb0220113945b77308c01842446d1f12fcc2 /test/functional/options | |
| parent | 0f20b7d803779950492c2838e2b042a38f4ee22f (diff) | |
| download | rneovim-1da0f3494eb042c84ae5f00654878f7f8cedf3b7.tar.gz rneovim-1da0f3494eb042c84ae5f00654878f7f8cedf3b7.tar.bz2 rneovim-1da0f3494eb042c84ae5f00654878f7f8cedf3b7.zip | |
test: correct order of arguments to eq() (#27816)
Diffstat (limited to 'test/functional/options')
| -rw-r--r-- | test/functional/options/defaults_spec.lua | 6 | ||||
| -rw-r--r-- | test/functional/options/num_options_spec.lua | 2 |
2 files changed, 4 insertions, 4 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) diff --git a/test/functional/options/num_options_spec.lua b/test/functional/options/num_options_spec.lua index 0614bcf814..3b411b109c 100644 --- a/test/functional/options/num_options_spec.lua +++ b/test/functional/options/num_options_spec.lua @@ -12,7 +12,7 @@ local function should_fail(opt, value, errmsg) eq(errmsg, eval('v:errmsg'):match('E%d*')) feed_command('let v:errmsg = ""') local status, err = pcall(api.nvim_set_option_value, opt, value, {}) - eq(status, false) + eq(false, status) eq(errmsg, err:match('E%d*')) eq('', eval('v:errmsg')) end |