Liking cljdoc? Tell your friends :D

utils.spec.predicates

Selected, generic predicates that you might find handy when specing things.

Installation

[com.nedap.staffing-solutions/utils.spec.predicates "1.2.2"]

Documentation

Please browse the public namespaces, which are documented, speced and tested.

Generator-equipped specs are available from the main namespace:

(require '[nedap.utils.spec.predicates.predicates :as predicates]
         '[clojure.spec.alpha :as spec]
         '[clojure.spec.gen.alpha :as gen])
=> nil
(gen/sample (spec/gen ::predicates/pos-integer))
=> (3 1 12 3 1 6 58 4 107 2)

Development

The default namespace is dev. Under it, (refresh) is available, which should give you a basic "Reloaded workflow".

It is recommended that you use (clojure.tools.namespace.repl/refresh :after 'formatting-stack.core/format!).

License

Copyright © Nedap This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0

Can you improve this documentation? These fine people already did:
Jeroen de Jong, vemv, Twan Coenraad & Twan
Edit on GitHub

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

× close