Back

tree-model (clj)

(source)

function

(tree-model data)

Examples

clojure/core.typed
(deftest atom?-test
  (is-tc-e #(atom? "abc") [-> Boolean]
           :requires [[clojure.inspector :refer [atom?]]])
  (is-tc-err #(atom? "abc") [-> String]
             :requires [[clojure.inspector :refer [atom?]]]))

(deftest tree-model-test
  (is-tc-e #(tree-model "abc")
           :requires [[clojure.inspector :refer [tree-model]]]))
typedclojure/typedclojure
(deftest atom?-test
  (is-tc-e #(atom? "abc") [-> Boolean]
           :requires [[clojure.inspector :refer [atom?]]])
  (is-tc-err #(atom? "abc") [-> String]
             :requires [[clojure.inspector :refer [atom?]]]))

(deftest tree-model-test
  (is-tc-e #(tree-model "abc")
           :requires [[clojure.inspector :refer [tree-model]]]))