[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 0bead7c 086/184: Use cl-lib functions instead of cl
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 0bead7c 086/184: Use cl-lib functions instead of cl in tests |
Date: |
Wed, 6 Oct 2021 00:01:13 -0400 (EDT) |
branch: elpa/popup
commit 0bead7c4f7247633be3c9f6e70e05ba3569ec1f2
Author: Ryan Mulligan <ryan@ryantm.com>
Commit: Ryan Mulligan <ryan@ryantm.com>
Use cl-lib functions instead of cl in tests
---
tests/popup-test.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/popup-test.el b/tests/popup-test.el
index d3ed9a7..4ff313c 100644
--- a/tests/popup-test.el
+++ b/tests/popup-test.el
@@ -2,7 +2,7 @@
(require 'popup)
;; for "every" function
-(require 'cl)
+(require 'cl-lib)
(when (< (frame-width) (length "long long long long line"))
(set-frame-size (selected-frame) 80 35))
@@ -34,7 +34,7 @@ batch mode."
(let ((strings (split-string str "\n")))
(when (search-forward (car strings) nil t)
(goto-char (match-beginning 0))
- (every
+ (cl-every
'identity
(mapcar
(lambda (elem)
@@ -43,9 +43,9 @@ batch mode."
(cdr strings))))))))
(defun popup-test-helper-buffer-contents ()
- (loop with start = (point-min)
+ (cl-loop with start = (point-min)
with contents
- for overlay in (sort* (overlays-in (point-min) (point-max))
+ for overlay in (cl-sort (overlays-in (point-min) (point-max))
'< :key 'overlay-start)
for overlay-start = (overlay-start overlay)
for overlay-end = (overlay-end overlay)
@@ -561,7 +561,7 @@ Baz"))
(ert-deftest popup-test-scroll-down ()
(popup-test-with-common-setup
(setq popup
- (popup-cascade-menu (loop for x to 100 collect (format "Foo%d" x))
+ (popup-cascade-menu (cl-loop for x to 100 collect (format "Foo%d" x))
:nowait t :height 10 :margin t :scroll-bar t))
(should (popup-test-helper-rectangle-match "\
Foo0
@@ -583,7 +583,7 @@ Foo2"))
(ert-deftest popup-test-scroll-up ()
(popup-test-with-common-setup
(setq popup
- (popup-cascade-menu (loop for x to 100 collect (format "Foo%d" x))
+ (popup-cascade-menu (cl-loop for x to 100 collect (format "Foo%d" x))
:nowait t :height 10 :margin t :scroll-bar t))
(should (popup-test-helper-rectangle-match "\
Foo0
- [nongnu] elpa/popup 6e467e2 026/184: Add Travis CI build status, (continued)
- [nongnu] elpa/popup 6e467e2 026/184: Add Travis CI build status, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 13dbaf5 037/184: Change test helper spec, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup c0937ea 053/184: Truncate summary first, then string itself, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup a49ffd0 081/184: Rename :initial-cursor keyword option to :cursor., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5809969 041/184: Add test case for margin, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e5794f8 052/184: Truncate summary when it is too long, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 967cde1 067/184: Merge pull request #30 from tkf/summary-face, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e164f3b 098/184: fixed without ignore-errors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 34be113 116/184: Merge pull request #78 from aki2o/fix-popup-delete, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup dcc9ee5 119/184: Merge pull request #80 from ancane/master, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0bead7c 086/184: Use cl-lib functions instead of cl in tests,
ELPA Syncer <=
- [nongnu] elpa/popup 29c6db4 130/184: Pass filtering function as an argument to popup-menu*, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5374e55 110/184: Merge pull request #73 from auto-complete/add-initial-index-test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 47008e1 135/184: Allow the user to specify a custom function to build the regexp in isearch, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 3d62f15 161/184: Merge pull request #112 from PuercoWork/patch-1, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup cf2cefe 166/184: Fixed compile warning, free variable from display line numbers., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 51f4430 171/184: Fixed to not use emacs 26.1 as dep., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 28762fc 138/184: Improve definition, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 88efff5 010/184: Not to insert newlines., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup bb4bb26 019/184: git mv popup-test.el tests/popup-interactive-test.el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 07901c6 023/184: Merge pull request #15 from tkf/travis-ci, ELPA Syncer, 2021/10/06