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/shada | |
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/shada')
-rw-r--r-- | test/functional/shada/merging_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/shada/merging_spec.lua b/test/functional/shada/merging_spec.lua index 1b5c0eab5d..ff81ce4eb9 100644 --- a/test/functional/shada/merging_spec.lua +++ b/test/functional/shada/merging_spec.lua @@ -1003,7 +1003,7 @@ describe('ShaDa jumps support code', function() eq(jumps[found].line, v.value.l) end end - eq(found, #jumps) + eq(#jumps, found) end) it('merges JUMPLISTSIZE jumps when writing', function() @@ -1041,7 +1041,7 @@ describe('ShaDa jumps support code', function() eq(jumps[found].line, v.value.l) end end - eq(found, 100) + eq(100, found) end) end) @@ -1132,7 +1132,7 @@ describe('ShaDa changes support code', function() eq(changes[found].line, v.value.l or 1) end end - eq(found, #changes) + eq(#changes, found) end) it('merges JUMPLISTSIZE changes when writing', function() @@ -1170,7 +1170,7 @@ describe('ShaDa changes support code', function() eq(changes[found].line, v.value.l) end end - eq(found, 100) + eq(100, found) end) it('merges JUMPLISTSIZE changes when writing, with new items between old', function() @@ -1213,6 +1213,6 @@ describe('ShaDa changes support code', function() eq(changes[found].line, v.value.l) end end - eq(found, 100) + eq(100, found) end) end) |