Created
May 29, 2012 21:28
-
-
Save dadarek/2830823 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns clojure_ttt.computer) | |
(defprotocol SomeProtocol | |
(boo [a])) | |
(defrecord SomeProtocolImpl [b] | |
SomeProtocol | |
(boo [this] true)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns clojure_ttt.computer-spec | |
(:use [clojure_ttt.computer]) | |
(:use [speclj.core])) | |
(def inst (SomeProtocolImpl. :a)) | |
(run-specs) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
java.lang.IllegalArgumentException: Unable to resolve classname: SomeProtocolImpl, compiling:(clojure_ttt/computer_spec.clj:5)