[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat cae28783bb 02/11: Add basic compat-funcall test
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat cae28783bb 02/11: Add basic compat-funcall test |
Date: |
Tue, 3 Jan 2023 15:57:28 -0500 (EST) |
branch: externals/compat
commit cae28783bb03070f0d97cc3b30832641c4de316b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Add basic compat-funcall test
---
compat-tests.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/compat-tests.el b/compat-tests.el
index 23c01c1d25..5a83a8c1d7 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -165,6 +165,14 @@ being compared against."
+(ert-deftest compat-funcall ()
+ (let (list)
+ (setq list (compat-funcall plist-put list "first" 1 #'string=))
+ (setq list (compat-funcall plist-put list "second" 2 #'string=))
+ (setq list (compat-funcall plist-put list "first" 10 #'string=))
+ (should (eq (compat-funcall plist-get list "first" #'string=) 10))
+ (should (eq (compat-funcall plist-get list "second" #'string=) 2))))
+
(compat-deftests string-search
;; Find needle at the beginning of a haystack:
(ought 0 "a" "abb")
- [elpa] externals/compat updated (1169ae8490 -> b22fa5096f), ELPA Syncer, 2023/01/03
- [elpa] externals/compat 4c02768dff 06/11: Remove unnecessary dir-locals, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 3a132c5065 07/11: Deprecate compat-alist-get gv expander, ELPA Syncer, 2023/01/03
- [elpa] externals/compat bd36ce3261 08/11: Update NEWS, ELPA Syncer, 2023/01/03
- [elpa] externals/compat a4db1521d0 05/11: Move compat-funcall and compat-function, ELPA Syncer, 2023/01/03
- [elpa] externals/compat adc28f0b5f 04/11: Remove obsolete commentary, ELPA Syncer, 2023/01/03
- [elpa] externals/compat b22fa5096f 11/11: Execute check inside of with-eval-after-load block, ELPA Syncer, 2023/01/03
- [elpa] externals/compat cae28783bb 02/11: Add basic compat-funcall test,
ELPA Syncer <=
- [elpa] externals/compat 1fdb3ddece 01/11: Use correct name in compat-funcall, ELPA Syncer, 2023/01/03
- [elpa] externals/compat ecab69ce57 10/11: Use different version string, ELPA Syncer, 2023/01/03
- [elpa] externals/compat 9c1e2f9c86 03/11: Update package header, ELPA Syncer, 2023/01/03
- [elpa] externals/compat b3c5c9c724 09/11: Update manual, ELPA Syncer, 2023/01/03