]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove test of treesit-language-at
authorYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 03:17:43 +0000 (20:17 -0700)
committerYuan Fu <casouri@gmail.com>
Sat, 29 Oct 2022 03:17:43 +0000 (20:17 -0700)
Because now it just calls a user-supplied function rather than doing
any work by itself.

* test/src/treesit-tests.el (treesit-parser-supplemental): Remove the
test.

test/src/treesit-tests.el

index b143bdf3799f661684074027bfec4f4f27fa08ce..56ac51ff9940b60d359bab6fb223348d7bbaca22 100644 (file)
@@ -389,9 +389,6 @@ visible_end.)"
         (setq root-node (treesit-parser-root-node
                          parser))
         (setq doc-node (treesit-node-child root-node 0)))
-      ;; `treesit-language-at'.
-      (should (equal (treesit-language-at (point))
-                     'json))
       ;; `treesit-set-ranges', `treesit-get-ranges'.
       (treesit-set-ranges 'json
                           '((1 . 2)))