[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat 3a6990e954 09/13: Rename named-let name in tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat 3a6990e954 09/13: Rename named-let name in tests to avoid byte compiler warnings |
Date: |
Sun, 13 Mar 2022 19:57:33 -0400 (EDT) |
branch: externals/compat
commit 3a6990e954cd9b08f78067eee01af1bb998170c0
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Rename named-let name in tests to avoid byte compiler warnings
The name "loop" appears to confuse the byte-compiler, as it might be
mistakenly taken to be the prefix-less "cl-loop" macro.
---
compat-tests.el | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/compat-tests.el b/compat-tests.el
index 8d30f24d13..6e45b00c7e 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1066,43 +1066,43 @@ being compared against."
100000))
(should (= (compat--named-let l ((i 0) (x 1)) (if (= i 8) x (l (1+ i) (* x
2))))
(expt 2 8)))
- (should (eq (compat--named-let loop ((x 1))
+ (should (eq (compat--named-let lop ((x 1))
(if (> x 0)
(condition-case nil
- (loop (1- x))
+ (lop (1- x))
(arith-error 'ok))
(/ 1 x)))
'ok))
- (should (eq (compat--named-let loop ((n 10000))
+ (should (eq (compat--named-let lop ((n 10000))
(if (> n 0)
(condition-case nil
(/ n 0)
- (arith-error (loop (1- n))))
+ (arith-error (lop (1- n))))
'ok))
'ok))
- (should (eq (compat--named-let loop ((x nil))
+ (should (eq (compat--named-let lop ((x nil))
(cond (x)
(t 'ok)))
'ok))
- (should (eq (compat--named-let loop ((x 100000))
+ (should (eq (compat--named-let lop ((x 100000))
(cond ((= x 0) 'ok)
- ((loop (1- x)))))
+ ((lop (1- x)))))
'ok))
- (should (eq (compat--named-let loop ((x 100000))
+ (should (eq (compat--named-let lop ((x 100000))
(cond
((= x -1) nil)
((= x 0) 'ok)
- ((loop -1))
- ((loop (1- x)))))
+ ((lop -1))
+ ((lop (1- x)))))
'ok))
- (should (eq (compat--named-let loop ((x 10000))
+ (should (eq (compat--named-let lop ((x 10000))
(cond ((= x 0) 'ok)
- ((and t (loop (1- x))))))
+ ((and t (lop (1- x))))))
'ok))
(should (eq (eval
- (let ((branch '((loop (and (setq b (not b)) (1+ i))))))
+ (let ((branch '((lop (and (setq b (not b)) (1+ i))))))
`(let ((b t))
- (compat--named-let loop ((i 0))
+ (compat--named-let lop ((i 0))
(cond ((null i) nil)
((= i 10000) 'ok)
,branch
- [elpa] externals/compat updated (c99569a419 -> 6b21a08666), ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3472e208d7 03/13: Remove duplicate string-search test block, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 7aee4b40ef 02/13: Remove duplicate ert-set-test in compat--expect, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 21c70607aa 01/13: Have minimal definitions expand to a defalias if possible, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 327cb6b6e6 04/13: Allow specifying a condition to test defaliasing prefix functions, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 12c750656c 06/13: Move assoc-delete-all to emacs-27, ELPA Syncer, 2022/03/13
- [elpa] externals/compat abb32f1b9d 05/13: Add :cond to assoc definition, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 317b88abdc 08/13: Fix args-out-of-range signal upper-bound edge case, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3a6990e954 09/13: Rename named-let name in tests to avoid byte compiler warnings,
ELPA Syncer <=
- [elpa] externals/compat 3b88489c8c 07/13: Exclude "MANUAL" from ELPA package, ELPA Syncer, 2022/03/13
- [elpa] externals/compat e5f4a546ae 10/13: Fix duplicate test name issues, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 3fa2a7477f 11/13: Avoid failing ":cond"-check if assoc-delete-all is not defined, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 6b21a08666 13/13: Update assoc-delete-all with prefix, ELPA Syncer, 2022/03/13
- [elpa] externals/compat 9e6b342095 12/13: Update MANUAL entry on assoc-delete-all, ELPA Syncer, 2022/03/13