Skip to content

Instantly share code, notes, and snippets.

Created May 19, 2015 08:43
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 anonymous/282abf8448e5f1cca608 to your computer and use it in GitHub Desktop.
Save anonymous/282abf8448e5f1cca608 to your computer and use it in GitHub Desktop.
(deftest test-automatic-data-readers
(is (= (dc/datom 1 :foo "bar" 1) #datascript/Datom [1 :foo "bar" 1]))
(is (= (dc/empty-db) #datascript/DB {:schema nil, :datoms nil}))
)
Caused by: clojure.lang.ExceptionInfo: No reader function for tag Datom {:type :reader-exception, :line 45, :column 53, :file "/.../src/datascript-virgin/test/datascript/test/serialization.cljc"}
{datascript/Datom datascript.core/datom-from-reader
datascript/DB datascript.core/db-from-reader}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment