[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 12b5d492d2 08/10: Improve compat-function test
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 12b5d492d2 08/10: Improve compat-function test |
Date: |
Thu, 5 Jan 2023 02:57:26 -0500 (EST) |
branch: externals/compat
commit 12b5d492d2909f37d3e03400ac40412cfa4af30d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Improve compat-function test
---
compat-tests.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/compat-tests.el b/compat-tests.el
index 2c9a0b8b95..f2f8636c6d 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -47,10 +47,10 @@
`(should (equal ,a ,b)))
(ert-deftest compat-function ()
- (let (list)
- (should (compat-function plist-put))
- (should (symbolp (compat-function plist-put)))
- (setq list (compat-call plist-put list "first" 1 #'string=))
+ (let ((sym (compat-function plist-put)) list)
+ (should sym)
+ (should (symbolp sym))
+ (setq list (funcall sym list "first" 1 #'string=))
(should (eq (compat-call plist-get list "first" #'string=) 1))))
(defun compat-function-put-test ())
- [elpa] externals/compat updated (e98cd9ddc0 -> 4bfab527f0), ELPA Syncer, 2023/01/05
- [elpa] externals/compat 4dc929cc84 01/10: Revert "Warn about untested functions", ELPA Syncer, 2023/01/05
- [elpa] externals/compat c0cc3ba86b 02/10: Use string-remove-prefix, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 92121f5934 03/10: Fix file-name-concat, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 13b51c364f 04/10: compat-29: Rename file-parent-directory to file-name-parent-directory, ELPA Syncer, 2023/01/05
- [elpa] externals/compat d9eea68168 09/10: Test defvar-keymap and define-keymap, ELPA Syncer, 2023/01/05
- [elpa] externals/compat dce1be9b8d 06/10: Use compat-defvar for internal variable, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 949607d6ee 07/10: Test compat-function, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 12b5d492d2 08/10: Improve compat-function test,
ELPA Syncer <=
- [elpa] externals/compat 4bfab527f0 10/10: Add key-valid-p test, ELPA Syncer, 2023/01/05
- [elpa] externals/compat 73faa4d116 05/10: Fix docstring, ELPA Syncer, 2023/01/05