]> git.eshelyaron.com Git - emacs.git/commit
Fix tree-sitter tests
authorYuan Fu <casouri@gmail.com>
Thu, 13 Apr 2023 07:52:17 +0000 (00:52 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 13 Apr 2023 22:08:51 +0000 (15:08 -0700)
commitdff254946a72db1d592e6e2f71f85786e5e5bdec
tree31301c906a69ddb06a900beccc3dbc996624e698
parent80f6c1027fd054d9126599322bcfd1f30f3f1076
Fix tree-sitter tests

After 2ce27563ecc, treesit--navigate-things takes a TACTIC argument
instead of using treesit-defun-tactic, so the tests need to change
from binding treesit-defun-tactic to passing the tactic argument,
which is what this change does.

* test/src/treesit-tests.el:
(treesit--ert-insert-and-parse-marker): New argument TACTIC.
(treesit-defun-navigation-nested-1)
(treesit-defun-navigation-nested-2)
(treesit-defun-navigation-nested-3)
(treesit-defun-navigation-top-level): Pass TACTIC argument.
test/src/treesit-tests.el