Created
February 26, 2012 23:21
-
-
Save ckirkendall/1919623 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns midje.cljs.basic) | |
(defn doubler [x] (* 2 x)) | |
(defn world [] "world") | |
(defn hello [] | |
(str "hello " (world))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAIL: at (t_basic.clj:14) | |
You claimed the following was needed, but it was never used: | |
(world) | |
FAIL: at (t_basic.clj:13) | |
Expected: "hello test" | |
Actual: "hello world" | |
FAILURE: 2 facts were not confirmed. (But 3 were.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns ^{:cljs-file "midje/cljs/basic.cljs"} | |
midje.cljs.t-basic | |
(:use [midje.sweet])) | |
(fact (doubler 5) => 10) | |
(unfinished world) | |
(fact (world) => "world") | |
(fact (hello) => "hello world") | |
(fact (hello) => "hello test" | |
(provided (world) => "test")) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment