Hi folks, I made some small changes to clojure.contrib.test-is:

1. *test-out* now defaults to standard output (instead of standard
error). This should be better for SLIME users.

2. Based on Frantisek Sodomka's suggestions, I've added two
convenience macros, each= and all-true:

user=> (doc all-true)
-------------------------
clojure.contrib.test-is/all-true
([& body])
Macro
  Convenience macro; every body expression is tested as with 'is'.
nil
user=> (doc each=)
-------------------------
clojure.contrib.test-is/each=
([& forms])
Macro
  Convenience macro for doing a bunch of equality tests.  Same as
  doing (is (= ...)) on each pair.

  (each= (test-expr-1) expected-value1
         (test-expr-2) expected-value2
         (test-expr-3) expected-value3)

I also modified test_clojure/numbers to demonstrate use of all-true.

I though about calling it "are", since it's like a plural form of
"is", but I thought that might be confusing for non-native-English
speakers.

I have committed these changes ONLY in the new, no-namespace-directory
files.

-Stuart
--~--~---------~--~----~------------~-------~--~----~
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