Skip to content

Instantly share code, notes, and snippets.

@viebel
Created April 11, 2022 05:51
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 viebel/885249078030ccdf1729e3459bd2905c to your computer and use it in GitHub Desktop.
Save viebel/885249078030ccdf1729e3459bd2905c to your computer and use it in GitHub Desktop.
(ns foo.me
(:require [clojure.test :refer [deftest is are run-tests]]))
(defn me [x]
(+ x 2))
(deftest test-me
(is (= 4 (me 2))))
(deftest test-multiple-me
(are [in out] (= out (me in))
2 4
3 90))
(run-tests)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment