Back
repl-prompt (clj)
(source)function
(repl-prompt)
Default :prompt hook for repl
Examples
clojure/core.typed
(deftest demunge-test
(is-tc-e (demunge "abc") String
:requires [[clojure.main :refer [demunge]]])
(is-tc-err (demunge "abc") Boolean
:requires [[clojure.main :refer [demunge]]])
(is-tc-err (demunge 1) String
:requires [[clojure.main :refer [demunge]]]))
(deftest repl-prompt-test
(is-tc-e #(repl-prompt) [-> Any]
:requires [[clojure.main :refer [repl-prompt]]]))
typedclojure/typedclojure
(deftest demunge-test
(is-tc-e (demunge "abc") String
:requires [[clojure.main :refer [demunge]]])
(is-tc-err (demunge "abc") Boolean
:requires [[clojure.main :refer [demunge]]])
(is-tc-err (demunge 1) String
:requires [[clojure.main :refer [demunge]]]))
(deftest repl-prompt-test
(is-tc-e #(repl-prompt) [-> t/Any]
:requires [[clojure.main :refer [repl-prompt]]]))