Yet another doctest implementation in Clojure
testdoc extends clojure.test/is
macro.
(ns foo-test
(require [clojure.test :as t]
testdoc.core))
(defn plus
"Add a and b
=> (plus 1 2)
3
=> (plus 2
=> 3)
5"
[a b]
(+ a b))
(t/deftest plus-test
(t/is (testdoc #'plus)))
Copyright © 2018-2020 Masashi Iizuka
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.
Can you improve this documentation? These fine people already did:
liquidz & Masashi IizukaEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close