Commits

Meikel Brandmeyer committed 8014d15

Boolean arbitrary

* generators.clj (arbitrary) <Boolean>: new multimethod

Comments (0)

Files changed (1)

src/de/kotka/tap/clojurecheck/generators.clj

    (.charAt source (arbitrary Integer 0 (dec (.length source)) nil)))
   ([_ _]
    (char (arbitrary Integer 32 255 nil))))
+
+(defmethod arbitrary Boolean
+  [_ _]
+  (arbitrary (elements true false) nil))