Skip to content

Instantly share code, notes, and snippets.

@ckirkendall
Created February 26, 2012 23:21
Show Gist options
  • Save ckirkendall/1919623 to your computer and use it in GitHub Desktop.
Save ckirkendall/1919623 to your computer and use it in GitHub Desktop.
(ns midje.cljs.basic)
(defn doubler [x] (* 2 x))
(defn world [] "world")
(defn hello []
(str "hello " (world)))
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.)
(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