[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’ instead of ‘(should (not …))’. |
Date: |
Sun, 6 Feb 2022 16:59:31 -0500 (EST) |
branch: elpa/typescript-mode
commit 2b1f04a166c7aa70912386f9956030a4a22e4852
Author: Philipp Stephani <phst@google.com>
Commit: Philipp Stephani <phst@google.com>
Use ‘(should-not …)’ instead of ‘(should (not …))’.
This is equivalent, but shorter, and produces better error messages.
---
typescript-mode-general-tests.el | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/typescript-mode-general-tests.el b/typescript-mode-general-tests.el
index aa1f1f8c78..d9def0a2f6 100644
--- a/typescript-mode-general-tests.el
+++ b/typescript-mode-general-tests.el
@@ -65,7 +65,7 @@
(typescript-mode)
(let ((test-reference (typescript-test-get-doc)))
(typescript-test-indent-all)
- (should (not (string= test-reference (typescript-test-get-doc)))))
+ (should-not (string= test-reference (typescript-test-get-doc))))
(kill-buffer)))
(ert-deftest list-items-indent-comma-first ()
@@ -83,7 +83,7 @@
(let ((test-reference (typescript-test-get-doc))
(typescript-indent-list-items nil))
(typescript-test-indent-all)
- (should (not (string= test-reference (typescript-test-get-doc)))))
+ (should-not (string= test-reference (typescript-test-get-doc))))
(kill-buffer)))
(defun get-all-matched-strings (to-match)
@@ -101,8 +101,8 @@ have a rule name or a severity."
to-match))
(matches (and match (get-all-matched-strings to-match))))
(should match)
- (should (not (nth 1 matches)))
- (should (not (nth 2 matches)))
+ (should-not (nth 1 matches))
+ (should-not (nth 2 matches))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
(should (string-equal (nth 4 matches) "1"))
@@ -117,7 +117,7 @@ a rule name, no severity."
to-match))
(matches (and match (get-all-matched-strings to-match))))
(should match)
- (should (not (nth 1 matches)))
+ (should-not (nth 1 matches))
(should (string-equal (nth 2 matches) "(quotemark) "))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
@@ -133,8 +133,8 @@ a severity set to ERROR, no rule name."
to-match))
(matches (and match (get-all-matched-strings to-match))))
(should match)
- (should (not (nth 1 matches)))
- (should (not (nth 2 matches)))
+ (should-not (nth 1 matches))
+ (should-not (nth 2 matches))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
(should (string-equal (nth 4 matches) "1"))
@@ -150,7 +150,7 @@ a severity set to WARNING, no rule name."
(matches (and match (get-all-matched-strings to-match))))
(should match)
(should (string-equal (nth 1 matches) "WARNING"))
- (should (not (nth 2 matches)))
+ (should-not (nth 2 matches))
(should (string-equal (nth 3 matches)
"src/modules/authenticator.ts"))
(should (string-equal (nth 4 matches) "1"))
@@ -486,7 +486,7 @@ function foo<Z, Y, Z & Y, Z | Y | Z, Y<X<X, Y>>>()\n"
;; Ensure we require symbol boundaries.
(test-with-fontified-buffer
"Notclass Foo"
- (should (not (eq (get-face-at "Foo") 'font-lock-type-face))))
+ (should-not (eq (get-face-at "Foo") 'font-lock-type-face)))
;; Other common ways of defining types.
(test-with-fontified-buffer
"interface Thing {}"
@@ -503,17 +503,17 @@ function foo<Z, Y, Z & Y, Z | Y | Z, Y<X<X, Y>>>()\n"
(test-with-fontified-buffer
"function test(var1: Type1, var2: Type2): RetType {\n}"
- (should (not (eq (get-face-at "var1") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var1") 'font-lock-type-face))
(should (eq (get-face-at "Type1") 'font-lock-type-face))
- (should (not (eq (get-face-at "var2") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var2") 'font-lock-type-face))
(should (eq (get-face-at "Type2") 'font-lock-type-face))
(should (eq (get-face-at "RetType") 'font-lock-type-face)))
(test-with-fontified-buffer
"class foo { test(var1: Type1, var2: Type2): RetType {\n} }"
- (should (not (eq (get-face-at "var1") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var1") 'font-lock-type-face))
(should (eq (get-face-at "Type1") 'font-lock-type-face))
- (should (not (eq (get-face-at "var2") 'font-lock-type-face)))
+ (should-not (eq (get-face-at "var2") 'font-lock-type-face))
(should (eq (get-face-at "Type2") 'font-lock-type-face))
(should (eq (get-face-at "RetType") 'font-lock-type-face)))
@@ -598,10 +598,10 @@ import... from...."
;; replicate that behavior here.
(test-with-fontified-buffer
"import 'a';\nimport { x } from 'b';\nconst foo = 'c';import { x }\nfrom
'd';"
- (should (not (flyspell-predicate-test "'a")))
- (should (not (flyspell-predicate-test "'b")))
+ (should-not (flyspell-predicate-test "'a"))
+ (should-not (flyspell-predicate-test "'b"))
(should (flyspell-predicate-test "'c"))
- (should (not (flyspell-predicate-test "'d"))))
+ (should-not (flyspell-predicate-test "'d")))
(test-with-fontified-buffer
;; This is valid TypeScript.
"const from = 'a';"
@@ -619,7 +619,7 @@ import... from...."
(cl-flet
((should-fail ()
(let ((point-before (point)))
- (should (not (typescript--move-to-end-of-plain-string)))
+ (should-not (typescript--move-to-end-of-plain-string))
(should (eq (point) point-before))))
(should-not-fail (expected)
(let ((result
(typescript--move-to-end-of-plain-string)))
- [nongnu] elpa/typescript-mode 69607202bc 139/222: Make GPL license discoverable by Github., (continued)
- [nongnu] elpa/typescript-mode 69607202bc 139/222: Make GPL license discoverable by Github., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f20103a448 154/222: Add `delete-selection` hints, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode fe63c579b5 158/222: Merge pull request #120 from emacs-typescript/tsx-tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode bd15f212a7 165/222: Implement support type-highlighting in some basic declarations, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 444aa36ec2 169/222: Fix the indentation of member expressions and continued expressions., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a8b7e76e85 171/222: Fix infinite loop in indentation., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 62e0366b46 181/222: Remove debugging code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a504b6f571 182/222: Merge pull request #1 from jkdufair/jkdufair-remove-debugging-code, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f36fddeb54 186/222: Merge pull request #136 from phst/dup, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 178ceca2d4 188/222: Add option for list items indenting, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2b1f04a166 191/222: Use ‘(should-not …)’ instead of ‘(should (not …))’.,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode daded219e6 199/222: Create initial GitHub actions build-definition, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode ab9c2e4fd0 209/222: Merge pull request #153 from emacs-typescript/feature/build-fix, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 67fd5fe4f2 200/222: Delete .travis.yml, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1043025d42 204/222: Merge pull request #143 from jcs-PR/badge, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3abc9dc6da 006/222: missed table, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e02a734151 058/222: Improve test-coverage., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode a922c27e95 111/222: Merge pull request #76 from ananthakumaran/fix/drop-typescript-parent-mode, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 5c9e46b2a1 128/222: Add file for jsdoc tests, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1da0c0e8b3 084/222: Try fix CI-build., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 255f670a40 130/222: Merge pull request #92 from dakra/autoload-indent-level, ELPA Syncer, 2022/02/06