testdoc

Yet another doctest implementation in Clojure


License
EPL-1.0

Documentation

testdoc

Clojars Project

Yet another doctest implementation in Clojure

Usage

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)))

Other works

License

Copyright © 2018 Masashi Iizuka

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.