-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
* rbs-mode.el (rbs-mode--core-type-regexp): Add word end pattern at the end of this regular expression. * rbs-mode-test.el: Add regression tests. * Makefile (check): Add task to run ERT. * CHANGELOG.md: Add change log entry. * .editorconfig: Add a rule for the Makefile.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
check: | ||
emacs --batch \ | ||
--load ert \ | ||
--load rbs-mode.el \ | ||
--load rbs-mode-test.el \ | ||
--funcall ert-run-tests-batch-and-exit | ||
.PHONY: check |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
;;; rbs-mode-test --- rbs-mode tests | ||
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check warning on line 1 in rbs-mode-test.el GitHub Actions / lint (29.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (29.3)
Check failure on line 1 in rbs-mode-test.el GitHub Actions / lint (29.3)
|
||
|
||
;; This program is free software; you can redistribute it and/or modify | ||
;; it under the terms of the GNU General Public License as published by | ||
;; the Free Software Foundation, either version 3 of the License, or | ||
;; (at your option) any later version. | ||
|
||
;; This program is distributed in the hope that it will be useful, | ||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
;; GNU General Public License for more details. | ||
|
||
;; You should have received a copy of the GNU General Public License | ||
;; along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
;;; Code: | ||
|
||
(defvar rbs-mode--core-type-regexp) | ||
|
||
(ert-deftest string-is-core-type () | ||
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 20 in rbs-mode-test.el GitHub Actions / lint (29.3)
|
||
(should (string-match rbs-mode--core-type-regexp "String"))) | ||
Check failure on line 21 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 21 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 21 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 21 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 21 in rbs-mode-test.el GitHub Actions / lint (28.2)
|
||
|
||
(ert-deftest string-scanner-is-not-core-type () | ||
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (28.2)
Check failure on line 23 in rbs-mode-test.el GitHub Actions / lint (29.3)
|
||
(should (eql nil (string-match rbs-mode--core-type-regexp "StringScanner")))) | ||
Check failure on line 24 in rbs-mode-test.el GitHub Actions / lint (26.3)
Check failure on line 24 in rbs-mode-test.el GitHub Actions / lint (25.3)
Check failure on line 24 in rbs-mode-test.el GitHub Actions / lint (24.5)
Check failure on line 24 in rbs-mode-test.el GitHub Actions / lint (27.2)
Check failure on line 24 in rbs-mode-test.el GitHub Actions / lint (28.2)
|
||
|
||
(provide 'rbs-mode-test) | ||
;;; rbs-mode-test.el ends here. |