[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 949607d6ee 07/10: Test compat-function
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 949607d6ee 07/10: Test compat-function |
Date: |
Thu, 5 Jan 2023 02:57:26 -0500 (EST) |
branch: externals/compat
commit 949607d6ee629f56f5783eb279560acedf47cd16
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Test compat-function
---
compat-tests.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/compat-tests.el b/compat-tests.el
index f7b7aef24e..2c9a0b8b95 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -46,6 +46,13 @@
(defmacro should-equal (a b)
`(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=))
+ (should (eq (compat-call plist-get list "first" #'string=) 1))))
+
(defun compat-function-put-test ())
(ert-deftest function-put ()
(function-put #'compat-function-put-test 'compat-test 42)
- [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 <=
- [elpa] externals/compat 12b5d492d2 08/10: Improve compat-function test, ELPA Syncer, 2023/01/05
- [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