From 3f37f6b43565242db4409022dd9bc980cb86c3f6 Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Mon, 21 Nov 2022 13:34:38 -0800 Subject: [PATCH] ; * test/src/treesit-tests.el (treesit-misc): Remove test. This test is for treesit--setting-for-mode, which is removed when we switched from using treesit-settings to using separate major modes. --- test/src/treesit-tests.el | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/test/src/treesit-tests.el b/test/src/treesit-tests.el index c736f97e312..59264722bac 100644 --- a/test/src/treesit-tests.el +++ b/test/src/treesit-tests.el @@ -522,27 +522,6 @@ visible_end.)" (insert "]") (should (treesit-node-check array-node 'outdated)))) -(ert-deftest treesit-misc () - "Misc helper functions." - (skip-unless (treesit-available-p)) - (let ((settings '((t 0 t) - (c-mode 1 t) - (text-mode 2 nil) - (prog-mode 3 t) - (fundamental-mode 4 t)))) - ;; `treesit--setting-for-mode'. - ;; Exact match. - (should (eq 1 (treesit--setting-for-mode 'c-mode settings))) - ;; Inherit from t. - (should (eq 0 (treesit--setting-for-mode 'non-exist settings))) - ;; Inherit from prog-mode rather than fundamental-mode. - (require 'elisp-mode) - (should (eq 3 (treesit--setting-for-mode 'emacs-lisp-mode settings))) - ;; Not inherit from text-mode. - (require 'outline) - (should (not (eq 2 (treesit--setting-for-mode 'outline-mode settings)))) - )) - ;; TODO ;; - Functions in treesit.el ;; - treesit-load-name-override-list -- 2.39.5