Back

old-table-model (clj)

(source)

function

(old-table-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 old-table-model-test
  (is-tc-e #(old-table-model [[1 2 3] [4 5 6] [7 8 9] [10 11 12]])
           :requires [[clojure.inspector :refer [old-table-model]]])
  (is-tc-err #(old-table-model 1)
             :requires [[clojure.inspector :refer [old-table-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 old-table-model-test
  (is-tc-e #(old-table-model [[1 2 3] [4 5 6] [7 8 9] [10 11 12]])
           :requires [[clojure.inspector :refer [old-table-model]]])
  (is-tc-err #(old-table-model 1)
             :requires [[clojure.inspector :refer [old-table-model]]]))