user=> (macroexpand-1 (are [ x y ] (= x y) ((fn[a] a) 1) 1))
true
user=> (macroexpand-1 '(are [ x y ] (= x y) ((fn[a] a) 1) 1))
(clojure.template/do-template [x y] (clojure.test/is (= x y)) ((fn [a] a)
1) 1)


The StackOverflowError may have something to do with the do-template func

On 13-1-28 下午11:37, "John Lawrence Aspden" <aspd...@googlemail.com> wrote:

>Hi, am I doing something wrong here?:
>
>user=> (clojure-version)
>"1.4.0"
>user=> (use 'clojure.test)
>nil
>user=> (is ((fn[x] x) 1) 1)
>1
>user=> (are [ x y ] (= x y) ((fn[x] x) 1) 1)
>StackOverflowError   clojure.core/map/fn--4087 (core.clj:2426)
>
>user=> (macroexpand '(are [ x y ] (= x y) ((fn[x] x) 1) 1))
>StackOverflowError   clojure.lang.RT.boundedLength (RT.java:1633)
>
>-- 
>-- 
>You received this message because you are subscribed to the Google
>Groups "Clojure" group.
>To post to this group, send email to clojure@googlegroups.com
>Note that posts from new members are moderated - please be patient with
>your first post.
>To unsubscribe from this group, send email to
>clojure+unsubscr...@googlegroups.com
>For more options, visit this group at
>http://groups.google.com/group/clojure?hl=en
>--- 
>You received this message because you are subscribed to the Google Groups
>"Clojure" group.
>To unsubscribe from this group, send email to
>clojure+unsubscr...@googlegroups.com.
>For more options, visit https://groups.google.com/groups/opt_out.
>
>


-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to