Ah of course! Thanks :)
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send email to [EMAIL PROTECTED]
Fo
Hi Tim,
You have run afoul of the automagical conversion between Lispy "-" and
Javaish "_":
' sad
(use 'clojure.contrib.test_is)
java.lang.Exception: namespace 'clojure.contrib.test_is' not found
after loading '/clojure/contrib/test_is/test_is.clj' (NO_SOURCE_FILE:0
; happy
user=> (use 'clo
On Tue, Oct 21, 2008 at 12:34 PM, Timothy Pratley
<[EMAIL PROTECTED]> wrote:
>
> I'm a bit stuck on how to load test_is...
> I've added a tiny section to the wiki because I couldn't find any
> instructions on using contrib, and well I made a lot of mistakes along
> the way that other people might
> There's a simple unit testing library in clojure.contrib.test-is.
> Look at the source code comments there for examples of how you can
> define tests.
Thanks Stuart S, I did a subversion grab of the source and well that
looks extreemly useful.
I'm a bit stuck on how to load test_is...
I've add
Thanks Stuart,
That's exactly what I was after.
On Oct 21, 11:05 pm, Stuart Halloway <[EMAIL PROTECTED]>
wrote:
> Hi Tim,
>
> Example below. This is from a demo porting Java code to Clojure, the
> original Java code is in the Apache Commons [1]. Note that test does
> not resolve symbols:
>
>
Hi Tim,
There's a simple unit testing library in clojure.contrib.test-is.
Look at the source code comments there for examples of how you can
define tests.
-Stuart Sierra
On Oct 21, 7:57 am, Timothy Pratley <[EMAIL PROTECTED]> wrote:
> I've noticed around the place a few hints at testing capabil
Hi Tim,
Example below. This is from a demo porting Java code to Clojure, the
original Java code is in the Apache Commons [1]. Note that test does
not resolve symbols:
; don't do this
(test 'index-of-any)
-> :no-test
; do this
(test #'index-of-any)
-> :ok
Cheers,
Stuart
[1]
http://svn.apa