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/treesitter/parser_spec.lua | |
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/treesitter/parser_spec.lua')
-rw-r--r-- | test/functional/treesitter/parser_spec.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/treesitter/parser_spec.lua b/test/functional/treesitter/parser_spec.lua index 875b772fec..24f395c1ef 100644 --- a/test/functional/treesitter/parser_spec.lua +++ b/test/functional/treesitter/parser_spec.lua @@ -828,7 +828,7 @@ end]] return parser:included_regions() ]] - eq(range_tbl, { { { 0, 0, 0, 17, 1, 508 } } }) + eq({ { { 0, 0, 0, 17, 1, 508 } } }, range_tbl) end) it('allows to set complex ranges', function() @@ -1111,7 +1111,7 @@ int x = INT_MAX; return sub_tree == parser:children().c ]]) - eq(result, true) + eq(true, result) end) end) @@ -1135,7 +1135,7 @@ int x = INT_MAX; return result ]]) - eq(result, 'value') + eq('value', result) end) describe('when setting a key on a capture', function() @@ -1158,7 +1158,7 @@ int x = INT_MAX; end ]]) - eq(result, 'value') + eq('value', result) end) it('it should not overwrite the nested table', function() |