branch: elpa/evil-matchit commit 2df3a62a8b823d9106921229dcd918b522284f90 Author: Nikita Bloshchanevich <nikb...@outlook.com> Commit: Nikita Bloshchanevich <nikb...@outlook.com>
Add a regression test Add a test ensuring that `evilmi-sdk-simple-jump' ignores spaces at the beginning of the line. --- tests/evil-matchit-tests.el | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/evil-matchit-tests.el b/tests/evil-matchit-tests.el index e4326bb9de..200113982e 100644 --- a/tests/evil-matchit-tests.el +++ b/tests/evil-matchit-tests.el @@ -471,5 +471,17 @@ (should (eq major-mode 'octave-mode)))) +(ert-deftest evilmi-test-simplejump-space () + "`evilmi-sdk-simple-jump' should skip spaces." + (with-temp-buffer + (insert " { + }") + (goto-char (point-min)) + (evilmi-sdk-simple-jump) + (should (= (char-after) ?})) + (goto-line 2) + (evilmi-sdk-simple-jump) + (should (= (char-after) ?{)))) + (ert-run-tests-batch-and-exit) ;;; evil-matchit-tests.el ends here