Hi Larry, hi all,
Just a quick note: this is not a complete answer, but I just added the
"testing" macro, which lets you add nested documentation strings to
tests, as in RSpec. I've also removed the "T-..." gensyms for now;
every deftest must have a symbol name.
user> (use 'clojure.contrib.test-is)
nil
user> (deftest my-tests
(testing "Arithmetic"
(testing "with integers"
(testing "should work"
(is (= 5 (+ 2 2)))))))
#'user/my-tests
user> (run-tests)
Testing user
FAIL in (my-tests) (NO_SOURCE_FILE:1)
Arithmetic with integers should work
expected: (= 5 (+ 2 2))
actual: (not= 5 4)
Ran 1 tests containing 1 assertions.
1 failures, 0 errors.
nil
user>
-Stuart Sierra
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---