Skip to content

Instantly share code, notes, and snippets.

@darwin
Created May 6, 2015 04:44
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 darwin/a83ea91f2e365946f076 to your computer and use it in GitHub Desktop.
Save darwin/a83ea91f2e365946f076 to your computer and use it in GitHub Desktop.
(deftype SampleType [a b])
(defrecord SampleRecord [c d e])
(deftest test-cljs$lang$type
(is (= (.-cljs$lang$type SampleType) true))
(is (= (str SampleType) "cljs.core-test/SampleType"))
(is (= (.-cljs$lang$type SampleRecord) true))
(is (= (str SampleRecord) "cljs.core-test/SampleRecord")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment