Skip to content

nervous-systems/promesa-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promesa-check

Clojars Project

A small Clojure & Clojurescript library for verifying asynchronous (promise-returning) test.check properties.

Usage

API documentation

quick-check

@(promesa-check.core/quick-check 10
  (prop/for-all* [gen/int]
    (fn [x]
     (p/resolved (number? x)))))
=>
{:result    true
 :num-tests 10
 :seed      1482058620269}

clojure.test/defspec

(def prop
 (prop/for-all* [gen/string]
  (fn [s]
   (p/delay 1 (= s s)))))

(promesa-check.core/defspec test 100 prop)

License

promesa-check is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying UNLICENSE file.

About

Utilities for running asynchronous test.check trials

Resources

License

Stars

Watchers

Forks

Packages

No packages published