[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-simulated-input 445df9edfd 110/134: Eliminate unneces
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/with-simulated-input 445df9edfd 110/134: Eliminate unnecessary quotes in test suite |
Date: |
Mon, 10 Jan 2022 23:00:10 -0500 (EST) |
branch: elpa/with-simulated-input
commit 445df9edfd3dce9343890b7709ffc73cc04414c3
Author: Ryan C. Thompson <rct@thompsonclan.org>
Commit: Ryan C. Thompson <rct@thompsonclan.org>
Eliminate unnecessary quotes in test suite
Since unquoted lists are now the preferred syntax, the test suite
should reflect that except when it is specifically testing the
deprecated syntax.
---
tests/test-with-simulated-input.el | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/tests/test-with-simulated-input.el
b/tests/test-with-simulated-input.el
index 685273cdc5..c2c2f9d646 100644
--- a/tests/test-with-simulated-input.el
+++ b/tests/test-with-simulated-input.el
@@ -39,7 +39,7 @@ put this outside any relevant `let' forms."
'(progn
,@(cl-loop for expr in body
collect `(funcall (lambda () ,expr)))
- lexical-binding)))
+ lexical-binding)))
(defvar warnings-displayed-count 0
"Count of warnings that have been displayed.")
@@ -216,9 +216,9 @@ during macro expansion will be caught as well."
(read-string "Say hello: "))
:to-equal "hello world"))
(let ((my-lexical-var nil))
- (with-simulated-input '("hello"
- (setq my-lexical-var t)
- "RET")
+ (with-simulated-input ("hello"
+ (setq my-lexical-var t)
+ "RET")
(read-string "Enter a string: "))
(expect my-lexical-var
:to-be-truthy)))
@@ -226,9 +226,9 @@ during macro expansion will be caught as well."
(it "is evaluated at run time in a non-lexical environment"
(let ((my-non-lexical-var nil))
(eval
- '(with-simulated-input '("hello"
- (setq my-non-lexical-var t)
- "RET")
+ '(with-simulated-input ("hello"
+ (setq my-non-lexical-var t)
+ "RET")
(read-string "Enter a string: "))
nil)
(expect my-non-lexical-var
@@ -260,7 +260,7 @@ during macro expansion will be caught as well."
(it "is thrown directly from expressions in KEYS"
(expect
- (with-simulated-input '("hello" (error "Throwing an error from KEYS")
"RET")
+ (with-simulated-input ("hello" (error "Throwing an error from KEYS")
"RET")
(read-string "Enter a string: "))
:to-throw 'error '("Throwing an error from KEYS")))
@@ -323,15 +323,15 @@ during macro expansion will be caught as well."
(read-string "Enter a string: "))
:to-throw 'error)
(expect
- (with-simulated-input '()
+ (with-simulated-input ()
(read-string "Enter a string: "))
:to-throw 'error)
(expect
- (with-simulated-input ()
+ (with-simulated-input '()
(read-string "Enter a string: "))
:to-throw 'error)
(expect
- (with-simulated-input '(nil)
+ (with-simulated-input (nil)
(read-string "Enter a string: "))
:to-throw 'error)
(let ((my-input nil))
@@ -346,11 +346,11 @@ during macro expansion will be caught as well."
(+ 1 2))
:not :to-throw)
(expect
- (with-simulated-input '()
+ (with-simulated-input ()
(+ 1 2))
:not :to-throw)
(expect
- (with-simulated-input ()
+ (with-simulated-input '()
(+ 1 2))
:not :to-throw)
(expect
- [nongnu] elpa/with-simulated-input 2a4866984a 080/134: No longer handle variables specially in KEYS, (continued)
- [nongnu] elpa/with-simulated-input 2a4866984a 080/134: No longer handle variables specially in KEYS, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 6c2e0ece2d 084/134: Use #' for advice-add/-remove, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 582844da4c 085/134: Add a failing test for byte-compiled closures, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input dca9d87d50 091/134: Move issue-specific tests to their own block, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c5b3f7ac70 097/134: Add tests for nil input, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 0a1b0dea0a 101/134: Clean up with-simulated-input-1, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 138106c256 116/134: Skip coverage calculation on older Emacsen, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 1b9123c708 112/134: Cache the return value of wsi-get-unbound-key, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 4abf2f0e6b 103/134: Replace def-form with form in debug declaration, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input c0b765c7fb 115/134: Add debug declarations to macros in test file, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 445df9edfd 110/134: Eliminate unnecessary quotes in test suite,
ELPA Syncer <=
- [nongnu] elpa/with-simulated-input 80d57be458 099/134: Make all the tests pass, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 41f4547339 132/134: Clarify a comment, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input a30bd8e6e4 129/134: Fix the test for variables in KEYS, ELPA Syncer, 2022/01/10
- [nongnu] elpa/with-simulated-input 9813acf396 114/134: Enable undercover on all tested Emacs versions, ELPA Syncer, 2022/01/10