branch: externals/matlab-mode
commit e1abec817cfea9df1236493be7f9d2497c72d529
Author: John Ciolfi <[email protected]>
Commit: John Ciolfi <[email protected]>
matlab-ts-mode: update comments in the tests
---
tests/test-matlab-ts-mode-comments.el | 7 +++----
tests/test-matlab-ts-mode-electric-ends.el | 5 +----
tests/test-matlab-ts-mode-electric-pair.el | 7 +++----
tests/test-matlab-ts-mode-file-encoding.el | 9 ++++-----
tests/test-matlab-ts-mode-fill-paragraph.el | 7 +++----
tests/test-matlab-ts-mode-font-lock.el | 9 ++++-----
tests/test-matlab-ts-mode-imenu.el | 7 +++----
tests/test-matlab-ts-mode-indent-xr.el | 11 +++++------
tests/test-matlab-ts-mode-indent.el | 5 ++---
tests/test-matlab-ts-mode-mfile-type.el | 7 +++----
tests/test-matlab-ts-mode-movement.el | 7 +++----
tests/test-matlab-ts-mode-on-save-fixes.el | 7 +++----
tests/test-matlab-ts-mode-outline.el | 9 ++++-----
tests/test-matlab-ts-mode-treesit-defun-name.el | 8 +++-----
14 files changed, 44 insertions(+), 61 deletions(-)
diff --git a/tests/test-matlab-ts-mode-comments.el
b/tests/test-matlab-ts-mode-comments.el
index 782c89e30f..a24eff66be 100644
--- a/tests/test-matlab-ts-mode-comments.el
+++ b/tests/test-matlab-ts-mode-comments.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-comments-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-comments-files/NAME_expected.org
+;; Tests for matlab-ts-mode comment handling.
;;
;;; Code:
@@ -64,3 +61,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-comments)
;;; test-matlab-ts-mode-comments.el ends here
+
+;; LocalWords: utils defun eos treesit xr
diff --git a/tests/test-matlab-ts-mode-electric-ends.el
b/tests/test-matlab-ts-mode-electric-ends.el
index 0256585782..4fa2cbc618 100644
--- a/tests/test-matlab-ts-mode-electric-ends.el
+++ b/tests/test-matlab-ts-mode-electric-ends.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-electric-ends-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-electric-ends-files/NAME_expected.org
+;; Tests for matlab-ts-mode "electric ends" feature
;;
;;; Code:
diff --git a/tests/test-matlab-ts-mode-electric-pair.el
b/tests/test-matlab-ts-mode-electric-pair.el
index 3dc1a450cc..36a5b61704 100644
--- a/tests/test-matlab-ts-mode-electric-pair.el
+++ b/tests/test-matlab-ts-mode-electric-pair.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-electric-pair-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-electric-pair-files/NAME_expected.org
+;; Tests for matlab-ts-mode electric-pair support.
;;
;;; Code:
@@ -64,3 +61,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-electric-pair)
;;; test-matlab-ts-mode-electric-pair.el ends here
+
+;; LocalWords: utils defun eos treesit xr
diff --git a/tests/test-matlab-ts-mode-file-encoding.el
b/tests/test-matlab-ts-mode-file-encoding.el
index 25130af968..97472b513e 100644
--- a/tests/test-matlab-ts-mode-file-encoding.el
+++ b/tests/test-matlab-ts-mode-file-encoding.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-file-encoding-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-file-encoding-files/NAME_expected.m
+;; Tests for matlab-ts-mode for file encoding
;;
;;; Code:
@@ -44,7 +41,7 @@ This is provided for debugging.
Using ./test-matlab-ts-mode-file-encoding-files/NAME.m, compare result
of activating matlab-ts-mode on NAME.m against
./test-matlab-ts-mode-file-encoding-files/NAME_expected.txt. Where the
-expected result is a succesful activation or an error message. This
+expected result is a successful activation or an error message. This
loops on all ./test-matlab-ts-mode-file-encoding-files/NAME.m files.
To add a test, create
@@ -65,3 +62,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-file-encoding)
;;; test-matlab-ts-mode-file-encoding.el ends here
+
+;; LocalWords: utils defun eos treesit
diff --git a/tests/test-matlab-ts-mode-fill-paragraph.el
b/tests/test-matlab-ts-mode-fill-paragraph.el
index 19717cf09b..b5ddd52a59 100644
--- a/tests/test-matlab-ts-mode-fill-paragraph.el
+++ b/tests/test-matlab-ts-mode-fill-paragraph.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-fill-paragraph-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-fill-paragraph-files/NAME_expected.org
+;; Tests for matlab-ts-mode for fill-paragraph
;;
;;; Code:
@@ -65,3 +62,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-fill-paragraph)
;;; test-matlab-ts-mode-fill-paragraph.el ends here
+
+;; LocalWords: utils defun eos treesit xr
diff --git a/tests/test-matlab-ts-mode-font-lock.el
b/tests/test-matlab-ts-mode-font-lock.el
index 08ded74ae6..0d499ca715 100644
--- a/tests/test-matlab-ts-mode-font-lock.el
+++ b/tests/test-matlab-ts-mode-font-lock.el
@@ -17,10 +17,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode font-lock faces.
-;; Load ../matlab-ts-mode.el via require and run font-lock tests using
-;; ./test-matlab-ts-mode-font-lock-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-font-lock-files/NAME_expected.txt
+;; Tests for matlab-ts-mode for font-lock
;;
;;; Code:
@@ -47,7 +44,7 @@ font-lock face used for said source character. The mapping
is defined
by the code-to-face alist setup by this function. This loops
on all ./test-matlab-ts-mode-font-lock-files/NAME.m files.
-To add a test, createp
+To add a test, create
./test-matlab-ts-mode-font-lock-files/NAME.m
and run this function. The baseline is saved for you as
./test-matlab-ts-mode-font-lock-files/NAME_expected.txt~
@@ -96,3 +93,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-font-lock)
;;; test-matlab-ts-mode-font-lock.el ends here
+
+;; LocalWords: utils defun alist eos buf treesit
diff --git a/tests/test-matlab-ts-mode-imenu.el
b/tests/test-matlab-ts-mode-imenu.el
index bc70e5b42e..50fa7d1a98 100644
--- a/tests/test-matlab-ts-mode-imenu.el
+++ b/tests/test-matlab-ts-mode-imenu.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-imenu-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-imenu-files/NAME_expected.txt
+;; Tests for matlab-ts-mode for imenu
;;
;;; Code:
@@ -63,3 +60,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-imenu)
;;; test-matlab-ts-mode-imenu.el ends here
+
+;; LocalWords: utils defun eos treesit
diff --git a/tests/test-matlab-ts-mode-indent-xr.el
b/tests/test-matlab-ts-mode-indent-xr.el
index d4117c4518..31da8c9c14 100644
--- a/tests/test-matlab-ts-mode-indent-xr.el
+++ b/tests/test-matlab-ts-mode-indent-xr.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Run indent tests using `t-utils-xr' in
-;; ./test-matlab-ts-mode-indent-xr-files/NAME.m
-;; comparing against
-;; ./test-matlab-ts-mode-indent-xr-files/NAME_expected.org
+;; Validate matlab-ts-mode indent "as you type".
;;
;;; Code:
@@ -43,8 +40,8 @@ This is provided for debugging.
(ert-deftest test-matlab-ts-mode-indent-xr ()
"Test indent using ./test-matlab-ts-mode-indent-xr-files/NAME.m.
Using ./test-matlab-ts-mode-indent-xr-files/NAME.m, compare typing
-commands via `t-utils-xr' Lisp commans in the *.m files and compare
-agains ./test-matlab-ts-mode-indent-xr-files/NAME_expected.org. This
+commands via `t-utils-xr' Lisp commands in the *.m files and compare
+against ./test-matlab-ts-mode-indent-xr-files/NAME_expected.org. This
loops on all ./test-matlab-ts-mode-indent-xr-files/NAME.m files.
To add a test, create
@@ -66,3 +63,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-indent-xr)
;;; test-matlab-ts-mode-indent-xr.el ends here
+
+;; LocalWords: utils defun eos treesit
diff --git a/tests/test-matlab-ts-mode-indent.el
b/tests/test-matlab-ts-mode-indent.el
index 0984ad5972..6fcc522dc1 100644
--- a/tests/test-matlab-ts-mode-indent.el
+++ b/tests/test-matlab-ts-mode-indent.el
@@ -20,9 +20,6 @@
;;; Commentary:
;;
;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-indent-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-indent-files/NAME_expected.m
;;
;;; Code:
@@ -83,3 +80,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-indent)
;;; test-matlab-ts-mode-indent.el ends here
+
+;; LocalWords: utils defun eos setq eobp treesit
diff --git a/tests/test-matlab-ts-mode-mfile-type.el
b/tests/test-matlab-ts-mode-mfile-type.el
index 6133a228c6..8db3381f1b 100644
--- a/tests/test-matlab-ts-mode-mfile-type.el
+++ b/tests/test-matlab-ts-mode-mfile-type.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-mfile-type-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-mfile-type-files/NAME_expected.org
+;; Tests for matlab-ts-mode mfile type handling (script, function, class,
empty)
;;
;;; Code:
@@ -66,3 +63,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-mfile-type)
;;; test-matlab-ts-mode-mfile-type.el ends here
+
+;; LocalWords: utils defun xr eos treesit
diff --git a/tests/test-matlab-ts-mode-movement.el
b/tests/test-matlab-ts-mode-movement.el
index 162d7553ab..a650ab9c6c 100644
--- a/tests/test-matlab-ts-mode-movement.el
+++ b/tests/test-matlab-ts-mode-movement.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-movement-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-movement-files/NAME_expected.org
+;; Tests for matlab-ts-mode "movement" commands such as C-M-f
;;
;;; Code:
@@ -67,3 +64,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-movement)
;;; test-matlab-ts-mode-movement.el ends here
+
+;; LocalWords: utils defun eos treesit xr
diff --git a/tests/test-matlab-ts-mode-on-save-fixes.el
b/tests/test-matlab-ts-mode-on-save-fixes.el
index 641ab95458..32fc8f4abe 100644
--- a/tests/test-matlab-ts-mode-on-save-fixes.el
+++ b/tests/test-matlab-ts-mode-on-save-fixes.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-on-save-fixes-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-on-save-fixes-files/NAME_expected.org
+;; Tests for matlab-ts-mode on save fixes (fix function/classdef name to match
file)
;;
;;; Code:
@@ -66,3 +63,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-on-save-fixes)
;;; test-matlab-ts-mode-on-save-fixes.el ends here
+
+;; LocalWords: utils defun tmp eos treesit xr
diff --git a/tests/test-matlab-ts-mode-outline.el
b/tests/test-matlab-ts-mode-outline.el
index e1465a5db3..450bcad87d 100644
--- a/tests/test-matlab-ts-mode-outline.el
+++ b/tests/test-matlab-ts-mode-outline.el
@@ -19,10 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-outline-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-outline-files/NAME_expected.txt
+;; Tests for matlab-ts-mode `outline-minor-mode'
;;
;;; Code:
@@ -42,7 +39,7 @@ This is provided for debugging.
(ert-deftest test-matlab-ts-mode-outline ()
"Test outline mode using ./test-matlab-ts-mode-outline-files/NAME.m.
Using ./test-matlab-ts-mode-outline-files/NAME.m, call
`outline-search-function'
-and compare result agains
+and compare result against
./test-matlab-ts-mode-outline-files/NAME_expected.txt. This loops
on all ./test-matlab-ts-mode-outline-files/NAME.m files.
@@ -64,3 +61,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-outline)
;;; test-matlab-ts-mode-outline.el ends here
+
+;; LocalWords: utils defun eos treesit
diff --git a/tests/test-matlab-ts-mode-treesit-defun-name.el
b/tests/test-matlab-ts-mode-treesit-defun-name.el
index cf14a65462..caa13f9098 100644
--- a/tests/test-matlab-ts-mode-treesit-defun-name.el
+++ b/tests/test-matlab-ts-mode-treesit-defun-name.el
@@ -19,11 +19,7 @@
;;; Commentary:
;;
-;; Validate matlab-ts-mode indent.
-;; Load ../matlab-ts-mode.el via require and run indent tests using
-;; ./test-matlab-ts-mode-treesit-defun-name-files/NAME.m comparing against
-;; ./test-matlab-ts-mode-treesit-defun-name-files/NAME_expected.txt
-;;
+;; Tests for matlab-ts-mode defun setup.
;;; Code:
@@ -65,3 +61,5 @@ after validating it, rename it to
(provide 'test-matlab-ts-mode-treesit-defun-name)
;;; test-matlab-ts-mode-treesit-defun-name.el ends here
+
+;; LocalWords: utils eos