aboutsummaryrefslogtreecommitdiff
path: root/src/clojure
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2009-05-29 17:36:24 +0000
committerStuart Sierra <mail@stuartsierra.com>2009-05-29 17:36:24 +0000
commitc23478d4a698744869732edd80ae9ebd4e48422c (patch)
treebd516b857abc337acc1346b4ee2d4ca02240c9f7 /src/clojure
parent4336201daedc0087013439d923dc7463291d7891 (diff)
test_is.clj: fixed documentation examples for "testing" macro
Diffstat (limited to 'src/clojure')
-rw-r--r--src/clojure/contrib/test_is.clj20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/clojure/contrib/test_is.clj b/src/clojure/contrib/test_is.clj
index 3d8392be..7175fa2a 100644
--- a/src/clojure/contrib/test_is.clj
+++ b/src/clojure/contrib/test_is.clj
@@ -73,18 +73,18 @@
;; In addition, you can document groups of assertions with the
;; "testing" macro, which takes a string followed by any number of
- ;; "is" assertions. The string will be included in failure reports.
+ ;; assertions. The string will be included in failure reports.
;; Calls to "testing" may be nested, and all of the strings will be
;; joined together with spaces in the final report, in a style
;; similar to RSpec <http://rspec.info/>
(testing "Arithmetic"
(testing "with positive integers"
- (= 4 (+ 2 2))
- (= 7 (+ 3 4)))
+ (is (= 4 (+ 2 2)))
+ (is (= 7 (+ 3 4))))
(testing "with negative integers"
- (= -4 (+ -2 -2))
- (= -1 (+ 3 -4))))
+ (is (= -4 (+ -2 -2)))
+ (is (= -1 (+ 3 -4)))))
;; Note that, unlike RSpec, the "testing" macro may only be used
;; INSIDE a "deftest" or "with-test" form (see below).
@@ -296,18 +296,18 @@ Chas Emerick, Allen Rohner, and Stuart Halloway",
In addition, you can document groups of assertions with the
\"testing\" macro, which takes a string followed by any number of
- \"is\" assertions. The string will be included in failure reports.
+ assertions. The string will be included in failure reports.
Calls to \"testing\" may be nested, and all of the strings will be
joined together with spaces in the final report, in a style
similar to RSpec <http://rspec.info/>
(testing \"Arithmetic\"
(testing \"with positive integers\"
- (= 4 (+ 2 2))
- (= 7 (+ 3 4)))
+ (is (= 4 (+ 2 2)))
+ (is (= 7 (+ 3 4))))
(testing \"with negative integers\"
- (= -4 (+ -2 -2))
- (= -1 (+ 3 -4))))
+ (is (= -4 (+ -2 -2)))
+ (is (= -1 (+ 3 -4)))))
Note that, unlike RSpec, the \"testing\" macro may only be used
INSIDE a \"deftest\" or \"with-test\" form (see below).