Semi sweet mode
Clone this wiki locally
midje.semi-sweet contains macros that provide less syntactic sugaring than those from
midje.sweet is built on top of it.
Here's a simple semi-sweet test:
(expect (numerical-reverser 103) => 301)
Prerequisites for an
expect use the
(expect (numerical-reverser 103) => 301 (fake (string-reverser "103") => "301"))
Notice that the
fake forms are within the body of the
expect call, not following it.
You can find a complete set of examples for the semi-sweet style here.