[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dash d7d0acb 242/316: Don't call eval
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dash d7d0acb 242/316: Don't call eval |
Date: |
Mon, 15 Feb 2021 15:58:09 -0500 (EST) |
branch: externals/dash
commit d7d0acb0e80c5206890b8e3d36f20159a14a96b1
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>
Don't call eval
* dev/examples-to-tests.el (example-to-should): No need to call
eval.
(defexamples, def-example-group): Tiny simplifications.
---
dev/examples-to-tests.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/dev/examples-to-tests.el b/dev/examples-to-tests.el
index d0ca32a..efe22c0 100644
--- a/dev/examples-to-tests.el
+++ b/dev/examples-to-tests.el
@@ -29,13 +29,11 @@
((eq sym '~>)
`(should (approx-equal ,actual ,expected)))
((eq sym '!!>)
- `(should-error (eval ',actual) :type ',expected))
- (t
- (error "Invalid test case: %S" `(,actual ,sym ,expected)))))
-
+ `(should-error ,actual :type ',expected))
+ ((error "Invalid test case: %S" `(,actual ,sym ,expected)))))
(defmacro defexamples (cmd &rest examples)
- (let ((tests))
+ (let (tests)
(while examples
(push (example-to-should (pop examples)
(pop examples)
@@ -43,7 +41,7 @@
tests))
`(ert-deftest ,cmd () ,@(nreverse tests))))
-(defun def-example-group (&rest _)) ; ignore
+(defalias 'def-example-group #'ignore)
(provide 'examples-to-tests)
;;; examples-to-tests.el ends here
- [elpa] externals/dash 794bf8c 219/316: ; Fix omission in last change, (continued)
- [elpa] externals/dash 794bf8c 219/316: ; Fix omission in last change, ELPA Syncer, 2021/02/15
- [elpa] externals/dash f9d67ae 223/316: Merge pull request #314 from blc/reductions, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 31a655b 224/316: Fix -cons* with no arguments, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3423be4 227/316: Merge pull request #364 from blc/info-look, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 558cd95 230/316: Fix take/drop splits (again), ELPA Syncer, 2021/02/15
- [elpa] externals/dash f975634 233/316: Merge pull request #235, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 8248997 234/316: Merge pull request #207 from holomorph/iota, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 3694ae9 236/316: * dash.el (-iota): Simplify and purify., ELPA Syncer, 2021/02/15
- [elpa] externals/dash ca36c57 239/316: Allow -lambda with no arguments, ELPA Syncer, 2021/02/15
- [elpa] externals/dash bf8a462 243/316: Partially revert last change, ELPA Syncer, 2021/02/15
- [elpa] externals/dash d7d0acb 242/316: Don't call eval,
ELPA Syncer <=
- [elpa] externals/dash bf8d876 238/316: Merge pull request #363 from blc/list, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 76ace7f 240/316: Fix error signaling, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 1ccf08d 244/316: ; Fix last change, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 2625bc5 247/316: Don't use insert-file-contents-literally, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 7583e65 248/316: Revert --map to using mapcar, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 6f5888c 251/316: Extend --filter and --remove docs and tests, ELPA Syncer, 2021/02/15
- [elpa] externals/dash db45ee7 252/316: Optimize -remove-first a bit, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 0e5acda 260/316: Simplify -non-nil, ELPA Syncer, 2021/02/15
- [elpa] externals/dash 9ad0d2b 266/316: Extend -map-indexed docs and tests, ELPA Syncer, 2021/02/15
- [elpa] externals/dash f61769d 256/316: * dash.el (dash--keywords): Prefer rx., ELPA Syncer, 2021/02/15