Skip to content

Instantly share code, notes, and snippets.

@CampingScorpion
Created December 24, 2011 20:44
Show Gist options
  • Save CampingScorpion/1518307 to your computer and use it in GitHub Desktop.
Save CampingScorpion/1518307 to your computer and use it in GitHub Desktop.
nested fact descriptions
(facts "about mathematics"
(fact "addition is commutative"
(+ 1 2) => 3
(+ 2 1) => 4) ;; FAIL
(fact "multiplication is commutative"
(* 2 5) => 10
(* 5 2) => 11)) ;; FAIL
;; These would report as:
;; FAIL: "about mathematics, addition is commutative" at (core.clj:995)
;; ...
;; FAIL: "about mathematics, multiplication is commutative" at (core.clj:999)
;; ...
@CampingScorpion
Copy link
Author

CampingScorpion commented Dec 26, 2011 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment