[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 89d77c8fe4 53/77: compat-tests.el: Enable sort-o
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 89d77c8fe4 53/77: compat-tests.el: Enable sort-on test |
Date: |
Mon, 24 Jun 2024 12:59:00 -0400 (EDT) |
branch: externals/compat
commit 89d77c8fe4238d3c0c36432548e11110de427cca
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
compat-tests.el: Enable sort-on test
---
compat-tests.el | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/compat-tests.el b/compat-tests.el
index 71bcc08d79..57a849327d 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1754,13 +1754,10 @@
(should-equal '(1 2 3 4) (flatten-tree '(((1 nil)) 2 (((3 nil nil) 4))))))
(ert-deftest compat-sort-on ()
- ;; TODO enable if CI emacs 30 supports sort-on
- (static-if (< emacs-major-version 30)
- (progn
- (should-equal '(3 2 1) (sort-on '(2 1 3) #'> #'identity))
- (should-equal '(1 2 3) (sort-on [2 1 3] #'< #'identity))
- (should-equal '((1 z) (2 y) (3 x)) (sort-on (list '(2 y) '(1 z) '(3 x))
#'< #'car))
- (should-equal '((x 3) (y 2) (z 1)) (sort-on (list '(y 2) '(z 1) '(x 3))
#'> #'cadr)))))
+ (should-equal '(3 2 1) (sort-on '(2 1 3) #'> #'identity))
+ (should-equal '(1 2 3) (sort-on [2 1 3] #'< #'identity))
+ (should-equal '((1 z) (2 y) (3 x)) (sort-on (list '(2 y) '(1 z) '(3 x)) #'<
#'car))
+ (should-equal '((x 3) (y 2) (z 1)) (sort-on (list '(y 2) '(z 1) '(x 3)) #'>
#'cadr)))
(ert-deftest compat-sort ()
(should-equal (list 1 2 3) (sort (list 1 2 3) #'<))
- [elpa] externals/compat 8f1c84745f 14/77: compat-tests: Use static-if, (continued)
- [elpa] externals/compat 8f1c84745f 14/77: compat-tests: Use static-if, ELPA Syncer, 2024/06/24
- [elpa] externals/compat bc22c48cf9 18/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 1bcce2dfd4 19/77: compat.texi: Fix typos, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 2a140e3563 22/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 4884caa838 21/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 9824972bfd 26/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat d4231e73e0 29/77: compat-tests: Enable merge-ordered-lists test on Emacs 30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 28a1e8e377 36/77: compat-30: Add find-buffer and get-truename-buffer, ELPA Syncer, 2024/06/24
- [elpa] externals/compat ab3fbaf31f 38/77: compat-30: Add extended completion-metadata-get, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 3e718596ac 50/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 89d77c8fe4 53/77: compat-tests.el: Enable sort-on test,
ELPA Syncer <=
- [elpa] externals/compat f8a73191c6 52/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 8190769d9e 61/77: compat-30: Add value< and sort with keyword arguments, ELPA Syncer, 2024/06/24
- [elpa] externals/compat ea96659971 75/77: compat-28: Fix links to tests, ELPA Syncer, 2024/06/24
- [elpa] externals/compat ab39edfb3b 08/77: compat.texi: Add missing compat-call, ELPA Syncer, 2024/06/24
- [elpa] externals/compat bf4b9aaa2e 11/77: Merge branch 'master' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 2cc2454fae 17/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat bd35d89543 16/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat cfad34b0c5 24/77: Merge branch 'main' into emacs-30, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 78e9a6922c 28/77: New Emacs 30 APIs: merge-ordered-lists, completion-lazy-hilit, ELPA Syncer, 2024/06/24
- [elpa] externals/compat 1de8ac10a9 30/77: compat-tests: Add TODO, ELPA Syncer, 2024/06/24