Permalink
Browse files

Merge branch 'master' into pr-diff

  • Loading branch information...
2 parents 62b03fa + 69191a3 commit 2d19dad77bd9684f166ffcda78c35f55d7889058 @stuartsierra committed Oct 15, 2010
Showing with 25 additions and 0 deletions.
  1. +2 −0 README.md
  2. +22 −0 src/test/clojure/examples/difference.clj
  3. +1 −0 src/test/script/runtests.clj
View
@@ -3,6 +3,8 @@ LAZYTEST IS BETA: THERE MAY BE BUGS
**Current release version is 1.1.2**
+Latest development version is 1.2.0-SNAPSHOT
+
Lazytest: behavior-driven development/testing framework for Clojure
by Stuart Sierra, http://stuartsierra.com/
@@ -0,0 +1,22 @@
+(ns examples.difference
+ (:use lazytest.describe))
+
+(describe "Differences among"
+ (it "simple values"
+ (= 1 2))
+ (it "simple computed values"
+ (= 5 (+ 2 2)))
+ (it "simple strings with common prefix"
+ (= "foobar" "fooquux"))
+ (it "vectors"
+ (= [1 2 3 4] [1 2 :a 4]))
+ (it "vectors of different lengths"
+ (= [1 2 3] [1]))
+ (it "vectors of different lengths"
+ (= [1] [1 1 3]))
+ (it "maps with similar keys"
+ (= {:a 1} {:a 2}))
+ (it "maps with different keys"
+ (= {:a 1} {:b 2}))
+ (it "sets"
+ (= #{1 2 3} #{2 3 4})))
@@ -13,6 +13,7 @@
(doseq [sym '[examples.suite1
examples.describe1
+ examples.difference
examples.complex-contexts
examples.random-test
examples.multimethods]]

0 comments on commit 2d19dad

Please sign in to comment.