Skip to content

Instantly share code, notes, and snippets.

@pingles
Created May 10, 2011 12:45
Show Gist options
  • Save pingles/964403 to your computer and use it in GitHub Desktop.
Save pingles/964403 to your computer and use it in GitHub Desktop.
(defn funky-prediction
[model x y]
;; something complex :)
1)
(deftest prediction-test
(let [model ; first arg
x ; other arg
predict (partial funky-prediction model x)]
(is (= 1 (redict :cat))
(= 2 (predict :dog))
;; more test cases
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment