Browse files

1.1

  • Loading branch information...
1 parent 5a8bd7f commit c903835b73634408b2f0f85daf0b6144f28204ff @marick committed Apr 5, 2011
View
18 HISTORY
@@ -1,29 +1,17 @@
-= 1.1-RC1
+= 1.1
* Can defer individual checks in a fact with the =future=>
arrow.
https://github.com/marick/Midje/wiki/Future-facts
-
-= 1.1-alpha-3
-* Negating arrows in facts
+* Negating arrows in facts (=not=>)
https://github.com/marick/Midje/wiki/Negating-arrows
* Folded prerequisites are much more competent
https://github.com/marick/Midje/wiki/Folded-prerequisites
-
-= 1.1-alpha-2
-* Better error checking infrastructure (not much user
- visible yet)
-* Fixed bug in folded prerequisites.
-
-= 1.1-alpha-1
-* Syntax errors made in Midje forms are somewhat better
- more gracefully reported.
+* Some improvement in error reporting.
* The #'roughly checker can be used for inexact numerical
comparisons.
* #'irrelevant is a synonym for #anything
* Line numbers are better reported for failures of very
stripped-down forms (like (fact 1 => odd?)
-* When stack traces are reported, they are better trimmed
- down.
* A prerequisite like (f 1) =streams=> [1 2 3] produces
the next value each time it's called.
* Issue warning when bare function is used in a
View
BIN downloads/examples.zip
Binary file not shown.
View
2 examples/adder-webapp/project.clj
@@ -10,5 +10,5 @@
[hiccup "0.2.6"]]
:dev-dependencies
[[lein-run "1.0.0"]
- [midje "1.1-RC1"]
+ [midje "1.1"]
])
View
2 examples/basic/project.clj
@@ -2,6 +2,6 @@
:description "An example of using Midje's sweet interface"
:dependencies [[org.clojure/clojure "[1.1.0,1.2.0]"]
[org.clojure/clojure-contrib "[1.1.0,1.2.0]"]
- [midje "1.1-RC1"]]
+ [midje "1.1"]]
:dev-dependencies [[marginalia "0.3.2"]])
View
2 examples/basic/run
@@ -1,2 +1,2 @@
cd test
-java -cp ../lib/clojure-1.2.0.jar:../lib/clojure-contrib-1.2.0.jar:../lib/core-1.3.0-20101126.151146-4.jar:../lib/def-1.3.0-20101219.140057-27.jar:../lib/dev:../lib/midje-1.1-RC1.jar:../lib/unifycle-0.5.0.jar clojure.main -i basic/core_test.clj -e '(ns basic.core-test)(run-tests)'
+java -cp ../lib/clojure-1.2.0.jar:../lib/clojure-contrib-1.2.0.jar:../lib/core-1.3.0-20101126.151146-4.jar:../lib/def-1.3.0-20101219.140057-27.jar:../lib/dev:../lib/midje-1.1.jar:../lib/unifycle-0.5.0.jar clojure.main -i basic/core_test.clj -e '(ns basic.core-test)(run-tests)'
View
2 examples/cake-midje/project.clj
@@ -2,4 +2,4 @@
:description "TODO: add summary of your project"
:dependencies [[clojure "1.2.0"]
[clojure-contrib "1.2.0"]]
- :dev-dependencies [[midje "1.1-RC1"]])
+ :dev-dependencies [[midje "1.1"]])
View
2 examples/compound-checkers/project.clj
@@ -4,4 +4,4 @@
[[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]]
:dev-dependencies
- [[midje "1.1-RC1"]])
+ [[midje "1.1"]])
View
2 examples/leiningen-midje/project.clj
@@ -2,4 +2,4 @@
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
- [midje "1.1-RC1"]])
+ [midje "1.1"]])
View
2 examples/leiningen-test/project.clj
@@ -2,4 +2,4 @@
:description "FIXME: write"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
- [midje "1.1-RC1"]])
+ [midje "1.1"]])
View
2 examples/semi-sweet-examples/project.clj
@@ -2,7 +2,7 @@
:description "An example of using Midje semi-sweet mocking"
:dependencies [[org.clojure/clojure "[1.1.0,1.2.0]"]
[org.clojure/clojure-contrib "[1.1.0,1.2.0]"]
- [midje "1.1-RC1"]
+ [midje "1.1"]
]
)
View
2 examples/semi-sweet-examples/run
@@ -1,2 +1,2 @@
cd test
-java -cp ../lib/clojure-1.2.0.jar:../lib/clojure-contrib-1.2.0.jar:../lib/core-1.3.0-20101116.112441-56.jar:../lib/def-1.3.0-20101116.112441-56.jar:../lib/midje-1.1-RC1.jar:../lib/unifycle-0.5.0.jar clojure.main -i semi_sweet_simple/core_test.clj -e '(ns semi-sweet-simple.core-test)(run-tests)'
+java -cp ../lib/clojure-1.2.0.jar:../lib/clojure-contrib-1.2.0.jar:../lib/core-1.3.0-20101116.112441-56.jar:../lib/def-1.3.0-20101116.112441-56.jar:../lib/midje-1.1.jar:../lib/unifycle-0.5.0.jar clojure.main -i semi_sweet_simple/core_test.clj -e '(ns semi-sweet-simple.core-test)(run-tests)'
View
2 project.clj
@@ -1,4 +1,4 @@
-(defproject midje "1.1-RC1"
+(defproject midje "1.1"
:description "A TDD library for Clojure, with an emphasis on mocks"
:dependencies [[org.clojure/clojure "1.2.0"]
[org.clojure/clojure-contrib "1.2.0"]
View
8 test/midje/checkers/t_collection.clj
@@ -67,14 +67,14 @@
[1 3 2] => (just #{1 2 3} :gaps-ok)
- [1 2 3] => (has-prefix [1 2])
- ( (has-prefix [2 1]) [1 2 3]) => false
+ [1 2 3] => (has-prefix [1 2])
+ [1 2 3] =not=> (has-prefix [2 1])
[1 2 3] => (has-prefix [2 1] :in-any-order)
[1 2 3] => (has-prefix #{2 1})
[1 2 3] => (has-prefix #{2 1} :gaps-ok) ; silly
- [1 2 3] => (has-suffix [even? odd?])
- ( (has-suffix [odd? even?]) [1 2 3]) => falsey
+ [1 2 3] => (has-suffix [even? odd?])
+ [1 2 3] =deny=> (has-suffix [odd? even?])
[1 2 3] => (has-suffix [odd? even?] :in-any-order)
[1 2 3] => (has-suffix #{even? odd?})
[1 2 3] => (has-suffix #{odd? even?} :gaps-ok) ; silly

0 comments on commit c903835

Please sign in to comment.