Port of Clojure's test.check