diff options
author | K. Handa <handa@gnu.org> | 2016-06-01 09:16:32 +0900 |
---|---|---|
committer | K. Handa <handa@gnu.org> | 2016-06-01 09:16:32 +0900 |
commit | 8e22067d59f59ee3a39f5d4f95c27e8ea3c935d6 (patch) | |
tree | 98c0480e0765c4f2b3d24ff5a1617e64a9109d80 /test/lisp | |
parent | 6d66089127313a1c5b5c5584eaf3e9edec010955 (diff) | |
parent | 25cc0f2aada3e321e5f1c6d1e492a93d16da45b2 (diff) | |
download | emacs-8e22067d59f59ee3a39f5d4f95c27e8ea3c935d6.tar.gz emacs-8e22067d59f59ee3a39f5d4f95c27e8ea3c935d6.tar.bz2 emacs-8e22067d59f59ee3a39f5d4f95c27e8ea3c935d6.zip |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'test/lisp')
-rw-r--r-- | test/lisp/emulation/viper-tests.el | 10 | ||||
-rw-r--r-- | test/lisp/subr-tests.el | 9 |
2 files changed, 14 insertions, 5 deletions
diff --git a/test/lisp/emulation/viper-tests.el b/test/lisp/emulation/viper-tests.el index 8b30f050935..e2c39b3c3de 100644 --- a/test/lisp/emulation/viper-tests.el +++ b/test/lisp/emulation/viper-tests.el @@ -33,7 +33,7 @@ after itself, although it will leave a buffer called (let ( ;; Viper just turns itself off during batch use. (noninteractive nil) - ;; Switch off start up message or it will chew the key presses + ;; Switch off start up message or it will chew the key presses. (viper-inhibit-startup-message 't) ;; Select an expert-level for the same reason. (viper-expert-level 5) @@ -42,7 +42,7 @@ after itself, although it will leave a buffer called (before-buffer (current-buffer))) (unwind-protect (progn - ;; viper-mode is essentially global, so set it here + ;; viper-mode is essentially global, so set it here. (viper-mode) ;; We must switch to buffer because we are using a keyboard macro ;; which appears to not go to the current-buffer but what ever is @@ -54,16 +54,16 @@ after itself, although it will leave a buffer called (erase-buffer) ;; The new buffer fails to enter vi state so set it. (viper-change-state-to-vi) - ;; Run the macro + ;; Run the macro. (execute-kbd-macro kmacro) (let ((rtn (buffer-substring-no-properties (point-min) (point-max)))) - ;; Kill the buffer iff the macro succeeds + ;; Kill the buffer iff the macro succeeds. (kill-buffer) rtn)) - ;; switch everthing off and restore the buffer + ;; Switch everything off and restore the buffer. (toggle-viper-mode) (switch-to-buffer before-buffer)))) diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 7906a207a96..ce212903c9d 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el @@ -61,6 +61,15 @@ (quote (0 font-lock-keyword-face)))))))) +(ert-deftest number-sequence-test () + (should (= (length + (number-sequence (1- most-positive-fixnum) most-positive-fixnum)) + 2)) + (should (= (length + (number-sequence + (1+ most-negative-fixnum) most-negative-fixnum -1)) + 2))) + (ert-deftest string-comparison-test () (should (string-lessp "abc" "acb")) (should (string-lessp "aBc" "abc")) |