Hi. Nowadays I'm happy with playing Clojure. I really appreciate Rich
Hickey and contributors.

When I evaluate (run-tests) in a repl of my terminal, I can see test
messages. But when I do it in slime, I can't see any messages. How I
can see test results in slime?

in repl:
user=> (run-tests)
Testing #<Namespace: user>

Ran 1 tests with 2 assertions.
0 failures, 0 exceptions.
nil

in slime:
user> (use 'clojure.contrib.test-is)
nil
user> (defn divides?
        ([candidate-divisor dividend]
           (zero? (rem dividend candidate-divisor)))
        {:test (fn []
                 (is (= true (divides? 7 42)))
                 (is (= false (divides? 11 42))))})
user> (run-tests)
nil
user>

I have one more trivial question. It seems good that Clojure
consistently manages all data structures as sequence. But operator
like 'assoc' can be applied to map and vector, except list and string.
I'm curious about the reason of this decision.
--~--~---------~--~----~------------~-------~--~----~
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