Skip to content

Instantly share code, notes, and snippets.

@alexanderjamesking
Last active April 28, 2018 10:06
Show Gist options
  • Save alexanderjamesking/5e56bc34f8523f7c3cc6844bdd918fed to your computer and use it in GitHub Desktop.
Save alexanderjamesking/5e56bc34f8523f7c3cc6844bdd918fed to your computer and use it in GitHub Desktop.
Testing in Clojure
(require '[clojure.test :refer [is]])
(defn pure-adder [x y]
(+ x y))
(is (= 3 (pure-adder 1 2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment