[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-numbers 08f0c1ee93 145/145: Cleanup: warnings for tes
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-numbers 08f0c1ee93 145/145: Cleanup: warnings for tests |
Date: |
Thu, 6 Jan 2022 03:00:26 -0500 (EST) |
branch: elpa/evil-numbers
commit 08f0c1ee93b8a563770eaefaf21ab9087fca7bdb
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: warnings for tests
---
tests/evil-numbers-tests.el | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/tests/evil-numbers-tests.el b/tests/evil-numbers-tests.el
index eb84f5694c..9597008430 100644
--- a/tests/evil-numbers-tests.el
+++ b/tests/evil-numbers-tests.el
@@ -19,7 +19,7 @@
;; See: `evil-numbers-tests.sh' for launching this script.
-;; TODO: tests that handle bugs. #20, #21, #24, #26, #27
+;; TODO: tests that handle bugs: #20, #21, #24, #26, #27.
;; Bugs fixed in:
;; c37a4cf92a9cf8aa9f8bd752ea856a9d1bc6c84c
@@ -28,6 +28,8 @@
;; ;; Caller ensures this.
;; (require 'evil-numbers)
+;;; Code:
+
;; ---------------------------------------------------------------------------
;; Global State
@@ -44,23 +46,25 @@
;; Internal Functions/Macros
(defmacro simulate-input (&rest keys)
- "Helper macro to simulate input."
+ "Helper macro to simulate input using KEYS."
(declare (indent 1))
`(let ((keys-list (list ,@keys)))
(dolist (keys keys-list)
(execute-kbd-macro keys))))
-(defun buffer-reset-text (initial-buffer)
+(defun buffer-reset-text (initial-buffer-text)
+ "Use INITIAL-BUFFER-TEXT to initialize the buffer with text."
(buffer-disable-undo)
(simulate-input (kbd "i"))
(erase-buffer)
;; Don't move the cursor.
- (save-excursion (insert initial-buffer))
+ (save-excursion (insert initial-buffer-text))
(simulate-input (kbd "<escape>"))
(buffer-enable-undo))
(defmacro with-evil-numbers-test (initial-buffer-text &rest body)
- "Run BODY adding any message call to the MESSAGE-LIST list."
+ "Run BODY adding any message call to the MESSAGE-LIST list.
+Setting the buffers text to INITIAL-BUFFER-TEXT."
(declare (indent 1))
;; Messages make test output noisy (mainly evil mode switching messages).
;; Disable when debugging tests.
@@ -310,3 +314,6 @@
(kbd "C-M-a") ;; Increment.
"a|") ;; Show cursor location.
(should (equal text-expected (buffer-string))))))
+
+(provide 'evil-numbers-tests)
+;;; evil-numbers-tests.el ends here
- [nongnu] elpa/evil-numbers a75c4b0a24 071/145: Cleanup: replace tabs with spaces, (continued)
- [nongnu] elpa/evil-numbers a75c4b0a24 071/145: Cleanup: replace tabs with spaces, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 626ea72a21 084/145: Cleanup: add missing argument to doc-string, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 15dcea1be0 087/145: Fix #20 The cursor moves when increment/decrement fails, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 5622da311d 070/145: Cleanup: spelling, use full sentences, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers ab6d436454 074/145: Cleanup: use '--' separator for private functions, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers ff3bcf4efd 068/145: Change repo URLs, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 6483ab668b 103/145: Cleanup: use '?' instead of '*' for matching sign, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 43036127c1 105/145: Cleanup: line length < 80, spelling, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 0bbf3a8161 109/145: Cleanup: store unicode subscript/superscript in constants, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers d09a0e676a 125/145: Fix #25 increment steps to the next line, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 08f0c1ee93 145/145: Cleanup: warnings for tests,
ELPA Syncer <=
- [nongnu] elpa/evil-numbers e1b60f3b75 133/145: Fix #27 Number directly before the cursor manipulated in some cases, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 3bd94723f8 134/145: Cleanup: indentation, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 0d66b63f42 116/145: CHANGELOG.org: update with recent fixes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 1acf90638b 128/145: Bump to 0.6, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers c39f8f1c19 122/145: Cleanup: auto-indent the changelog, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers ef72a4fea1 135/145: Cleanup: correct doc-strings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 70b986276a 117/145: Cleanup: declare nums as `(list)` for readability, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 623bcbd04f 130/145: README: add "similar packages" section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 1bf577af5c 132/145: Fix #26: Optionally match characters directly before the cursor, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 43ae06047c 115/145: README.org: keypad can be used for other platforms too, ELPA Syncer, 2022/01/06