[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat ef5246cf55 38/84: Fix issues related to 'expect'
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat ef5246cf55 38/84: Fix issues related to 'expect' tests |
Date: |
Tue, 3 Jan 2023 08:57:34 -0500 (EST) |
branch: externals/compat
commit ef5246cf5517e3120d75953e091e2e5c77398c29
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fix issues related to 'expect' tests
---
compat-tests.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/compat-tests.el b/compat-tests.el
index e4d68ebfdc..7ef404e17b 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -116,7 +116,7 @@ being compared against."
,(if (consp error-spec)
`(equal res ',error-spec)
`(eq (car res) ',error-spec)))))))))
- (and (fboundp compat)
+ (if (fboundp compat)
`(ert-set-test
',comp-test
(make-ert-test
@@ -124,11 +124,12 @@ being compared against."
:tags '(,name)
:body (lambda ()
(should
- (let ((res (should-error (,name ,@args) :type
',error-type)))
+ (let ((res (should-error (,compat ,@args) :type
',error-type)))
(should
,(if (consp error-spec)
`(equal res ',error-spec)
- `(eq (car res) ',error-spec))))))))))))))
+ `(eq (car res) ',error-spec))))))))
+ (warn "Missing compat definition %S" compat)))))))
(defmacro compat-deftests (name &rest body)
"Test NAME in BODY."
@@ -138,7 +139,7 @@ being compared against."
(real-name (if (consp name) (car name) name))
(compat-name (if (consp name)
(cadr name)
- (intern (format "compat--%s" real-name))))
+ (intern (format "compat--%S" real-name))))
(env (list
(cons 'ought (compat--ought real-name compat-name))
(cons 'expect (compat--expect real-name compat-name)))))
- [elpa] externals/compat 4710da5fa7 28/84: Add file-parent-directory from Emacs 29, (continued)
- [elpa] externals/compat 4710da5fa7 28/84: Add file-parent-directory from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat bb86f3aa3b 37/84: Simplify compat--generate-testable, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 282f2dc6a7 41/84: Call install-fn in compat--generate-testable, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 3f3f2e44d5 43/84: Split compat-insert-into-buffer into multiple tests, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 933d6fdf80 24/84: Add buffer-match-p from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 8d17ffdd88 29/84: Add file-has-changed-p from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 252d33e897 31/84: Fix incompatible function calls in compat-29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9e0eb5b72f 33/84: Add compat-declare-version to compat-29.el, ELPA Syncer, 2023/01/03
- [elpa] externals/compat fdae099b00 34/84: Move if-let and related function from subr-x to subr, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 6ac6ed2a99 36/84: Use make-symbol instead of gensym in function-alias-p tests, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ef5246cf55 38/84: Fix issues related to 'expect' tests,
ELPA Syncer <=
- [elpa] externals/compat 0a84a7c219 48/84: Add add-display-text-property from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat e6d279af18 14/84: Extend byte-compile-docstring-max-column to 100, ELPA Syncer, 2023/01/03
- [elpa] externals/compat c177ff5e83 17/84: Reuse ntake in take definition, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 0de389aca6 19/84: Add string-equal-ignore-case from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ff331f6c29 22/84: Add prefixed plist-put from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9aac0f55d1 23/84: Add prefixed plist-member from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9ab3081959 26/84: Add string-pixel-width from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat d375504e3c 27/84: Add with-buffer-unmodified-if-unchanged from Emacs 29, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ded0f01036 40/84: Revert "Fix gv-expander for compat-alist-get", ELPA Syncer, 2023/01/03
- [elpa] externals/compat 878221eabd 44/84: Update the commentary section for compat-29, ELPA Syncer, 2023/01/03