emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 9b5bb5c 072/187: Add more comprehensive testing for anti-c


From: Michael Albinus
Subject: [elpa] master 9b5bb5c 072/187: Add more comprehensive testing for anti-closure feature
Date: Wed, 30 Dec 2015 11:49:46 +0000

branch: master
commit 9b5bb5cbd986addbe9b4e0499131f2d38808b256
Author: Ryan C. Thompson <address@hidden>
Commit: Ryan C. Thompson <address@hidden>

    Add more comprehensive testing for anti-closure feature
    
    Based on suggestions in
    https://github.com/jwiegley/emacs-async/pull/18#issuecomment-26665920
---
 async-test.el |   19 +++++++++++++++----
 1 files changed, 15 insertions(+), 4 deletions(-)

diff --git a/async-test.el b/async-test.el
index 03db68e..a5e83e9 100644
--- a/async-test.el
+++ b/async-test.el
@@ -135,10 +135,21 @@
   (interactive)
   (message "Starting async-test-7...")
   (eval
-   '(mapcar #'async-get
-            (cl-loop repeat 2 collect
-                     (async-start (lambda () t))))
-   t))
+   '(progn
+      (print
+       (mapcar #'async-get
+               (cl-loop repeat 2 collect
+                        (async-start (lambda () t)))))
+      (print
+       (mapcar #'async-get
+               (cl-loop repeat 2 collect
+                        (async-start '(lambda () t)))))
+      (print
+       (mapcar #'async-get
+               (cl-loop repeat 2 collect
+                        (async-start `(lambda () ,(* 150 2)))))))
+   t)
+  (message "Finished async-test-7 successfully."))
 
 (defsubst async-file-contents (file)
   "Return the contents of FILE, as a string."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]