You can get a feel of it just by looking at the 10sec example here:
http://jayfields.com/expectations/
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
ClojureScript group.
Expectations v2.1.1 has just been released with support for ClojureScript.
Expectations is a Clojure(Script) testing framework where your tests are
written in the following manner:
(expect 4 (+ 2 2))
Check it out:
https://github.com/jaycfields/expectations/blob/master/CHANGELOG.md
Cheers
;
Also, expectations colorizes the output, so it looks very nice and highlights
important information. As advertized, adding signal, removing noize ;)
You can try it for yourself, just by cloning the repo
(https://github.com/jaycfields/expectations)
and running:
lein do clean, cljx, cljsbuild
Only compile time metadata is possible for ClojureScript vars now. And that's
perfectly fine.
What would be cool is to be able to add arbitrary keys to it. That'd still be
immutable metadata only added at compile time. Unfortunately, it's ignored now:
ClojureScript:cljs.user
(defn
Update: the cause of the above weirdness is...
Macros are evaluated at least twice per macro usage (application) during
compilation. I guess, maybe once for a namespace where it originally occurs and
at least once per that namespace require.
So:
- If there are any side effects in the macro
Hi,
I'm porting expectations (https://github.com/jaycfields/expectations) to
ClojureScript and may have encountered a compiler bug along the way. An
expectations test looks like this:
(expect expected actual),
where expect is a macro that produces a def with a generated symbol as its
name.
The same issue (and workaround) applies to clojurescript-0.0.2311
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
ClojureScript group.
To unsubscribe from this group and