diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-26 12:20:19 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 12:20:19 +0800 |
commit | a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc (patch) | |
tree | c22f82a0c739a99729d3d07a2af228b31dacaf4e /test/functional/api/autocmd_spec.lua | |
parent | 5d159a7faad913852c65c81dcc976cf4be902fc1 (diff) | |
parent | 519e4c44720be9b0c8584cb53a902bc1e5bfe3a3 (diff) | |
download | rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.gz rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.tar.bz2 rneovim-a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc.zip |
Merge pull request #18267 from zeertzjq/test-eq-arg-order
test: correct order of arguments to eq() and neq()
Diffstat (limited to 'test/functional/api/autocmd_spec.lua')
-rw-r--r-- | test/functional/api/autocmd_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/api/autocmd_spec.lua b/test/functional/api/autocmd_spec.lua index 377b4fecf0..a30af63ba1 100644 --- a/test/functional/api/autocmd_spec.lua +++ b/test/functional/api/autocmd_spec.lua @@ -727,7 +727,7 @@ describe('autocmd api', function() set_ft("txt") set_ft("python") - eq(get_executed_count(), 2) + eq(2, get_executed_count()) end) it('works getting called multiple times', function() @@ -736,7 +736,7 @@ describe('autocmd api', function() set_ft() set_ft() - eq(get_executed_count(), 3) + eq(3, get_executed_count()) end) it('handles ++once', function() @@ -746,7 +746,7 @@ describe('autocmd api', function() set_ft('txt') set_ft('help') - eq(get_executed_count(), 1) + eq(1, get_executed_count()) end) it('errors on unexpected keys', function() @@ -874,7 +874,7 @@ describe('autocmd api', function() set_ft("txt") set_ft("python") - eq(get_executed_count(), 1) + eq(1, get_executed_count()) end) it('autocmds can be registered multiple times.', function() @@ -888,7 +888,7 @@ describe('autocmd api', function() set_ft("txt") set_ft("python") - eq(get_executed_count(), 3 * 2) + eq(3 * 2, get_executed_count()) end) it('can be deleted', function() |