aboutsummaryrefslogtreecommitdiff
path: root/compat-tests.el
diff options
context:
space:
mode:
Diffstat (limited to 'compat-tests.el')
-rw-r--r--compat-tests.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/compat-tests.el b/compat-tests.el
index 4616b8c..44f9228 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1054,7 +1054,15 @@
(should-equal (compat-call plist-get list "first" #'string=) 10)
(should-equal (compat-call plist-get list "second" #'string=) 2)
(should (compat-call plist-member list "first" #'string=))
- (should-not (compat-call plist-member list "third" #'string=))))
+ (should-not (compat-call plist-member list "third" #'string=)))
+ (let (list)
+ (setq list (compat-call plist-put list "first" 1 #'equal))
+ (setq list (compat-call plist-put list "second" 2 #'equal))
+ (setq list (compat-call plist-put list "first" 10 #'equal))
+ (should-equal (compat-call plist-get list "first" #'equal) 10)
+ (should-equal (compat-call plist-get list "second" #'equal) 2)
+ (should (compat-call plist-member list "first" #'equal))
+ (should-not (compat-call plist-member list "third" #'equal))))
(ert-deftest compat-garbage-collect-maybe ()
(garbage-collect-maybe 10))