Skip to content

Instantly share code, notes, and snippets.

@0atman
Created September 20, 2017 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0atman/074a47051771ad0849002dfbd45ef627 to your computer and use it in GitHub Desktop.
Save 0atman/074a47051771ad0849002dfbd45ef627 to your computer and use it in GitHub Desktop.
(defn tester [x]
{:pre [(is (even? x))]}
x)
@0atman
Copy link
Author

0atman commented Sep 20, 2017

user=> (tester 2)
2
user=> (tester 1)

FAIL in () (form-init6078259188282679648.clj:1)

expected: (even? x)
  actual: false

  values: (even? 1)

java.lang.AssertionError: Assert failed: (is (even? x))

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