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 avoid:
> http://en.wikibooks.org/wiki/Clojure_Programming#clojure.contrib
>
> I think that it is set up correctly because I can "use fcase", but
> can't "use test_is". Maybe I don't need to explicitly or something, my
> brain is a bit fried atm please see below:
>
> user=> (use 'clojure.contrib.fcase)
> nil
> user=> (use 'clojure.contrib.test_is)
> java.lang.Exception: namespace 'clojure.contrib.test_is' not found
> after loading
>  '/clojure/contrib/test_is/test_is.clj'

I believe what you want is:

user=> (use 'clojure.contrib.test-is)
nil

The hyphen isn't a valid character in Java package names, so Clojure
converts the hyphen in the call above to an underscore. So, we use
hyphens in Clojure namespaces and underscores in their place in the
associated Java package names.

- J.

--~--~---------~--~----~------------~-------~--~----~
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]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to