diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/cmds-tests.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/cmds-tests.el b/test/src/cmds-tests.el index 05c62858773..bab8b5f26ec 100644 --- a/test/src/cmds-tests.el +++ b/test/src/cmds-tests.el | |||
| @@ -30,5 +30,13 @@ | |||
| 30 | (let ((last-command-event ?a)) | 30 | (let ((last-command-event ?a)) |
| 31 | (should-error (self-insert-command -1)))) | 31 | (should-error (self-insert-command -1)))) |
| 32 | 32 | ||
| 33 | (ert-deftest forward-line-with-bignum () | ||
| 34 | (with-temp-buffer | ||
| 35 | (insert "x\n") | ||
| 36 | (let ((shortage (forward-line (1- most-negative-fixnum)))) | ||
| 37 | (should (= shortage most-negative-fixnum))) | ||
| 38 | (let ((shortage (forward-line (+ 2 most-positive-fixnum)))) | ||
| 39 | (should (= shortage (1+ most-positive-fixnum)))))) | ||
| 40 | |||
| 33 | (provide 'cmds-tests) | 41 | (provide 'cmds-tests) |
| 34 | ;;; cmds-tests.el ends here | 42 | ;;; cmds-tests.el ends here |