Liking cljdoc? Tell your friends :D

testdoc

GitHub Actions for test workflow GitHub Actions for lint workflow Dependencies Status 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-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 Iizuka
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close