[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 1d0f6db 56/99: Add compat-if-let* tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 1d0f6db 56/99: Add compat-if-let* tests |
Date: |
Sun, 17 Oct 2021 05:57:56 -0400 (EDT) |
branch: externals/compat
commit 1d0f6dbb91526bd6095f8227ad46c577fa774712
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Add compat-if-let* tests
---
compat-tests.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/compat-tests.el b/compat-tests.el
index 0988004..a0a917a 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1229,5 +1229,18 @@ the compatibility function."
(compat--should t "dir/subdir/")
(compat--should nil "dir/subdir")))
+(ert-deftest compat-if-let* ()
+ "Check if `compat--if-let*' was implemented properly."
+ (should
+ (compat--if-let*
+ ((x 3)
+ (y 2)
+ (z (+ x y))
+ ((= z 5))
+ (true t))
+ true nil))
+ (should-not
+ (compat--if-let* (((= 5 6))) t nil)))
+
(provide 'compat-tests)
;;; compat-tests.el ends here
- [elpa] externals/compat a983e8c 30/99: Install advice using advice instead of nadvice for Emacs 24.3, (continued)
- [elpa] externals/compat a983e8c 30/99: Install advice using advice instead of nadvice for Emacs 24.3, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 08c77ed 33/99: Declare variable for gensym, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 56ad375 40/99: Declare macrop for macroexpand-1, ELPA Syncer, 2021/10/17
- [elpa] externals/compat e4b57d2 28/99: Increase base version to 24.3, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 1430aaa 09/99: Add highlighting for compatibility code, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 79d4778 23/99: Use compat--string-trim-left in file-name-with-extension, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 156b5f5 27/99: Ensure substring is passed two arguments in string-width advise, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 14a3bce 39/99: Remove NonGNU ELPA installation code, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 6445814 51/99: Use compatibility functions in file-name-with-extension definition, ELPA Syncer, 2021/10/17
- [elpa] externals/compat fa1d0df 55/99: Use names of compatibility functions in ert docstrings, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 1d0f6db 56/99: Add compat-if-let* tests,
ELPA Syncer <=
- [elpa] externals/compat c0c1889 57/99: Add compat-and-let* tests, ELPA Syncer, 2021/10/17
- [elpa] externals/compat a57cfed 66/99: Avoid comparing alist-get with testfn if not available, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 7d90061 21/99: Add made up macro name to macrop test, ELPA Syncer, 2021/10/17
- [elpa] externals/compat f3c5728 22/99: Wrap compat-tests setup in an eval-and-load block, ELPA Syncer, 2021/10/17
- [elpa] externals/compat eb0c027 26/99: Advise indirect-function to not raise void-function, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 797930f 34/99: Declare temporary-file-directory for make-nearby-temp-file, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 26acf1f 48/99: Use compatibility macros in ...-let definitions, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 8f64282 49/99: Use compatibility functions in string-trim definition, ELPA Syncer, 2021/10/17
- [elpa] externals/compat e6b5f08 53/99: Load all compatibility code unconditionally, ELPA Syncer, 2021/10/17
- [elpa] externals/compat 021ffd1 59/99: Handle legacy bytecode argument lists, ELPA Syncer, 2021/10/17