Speculoos version 5
Released under the MIT License
A library for validating Clojure data.
Installation
To install, add the following dependency to your project or build file:
[com.sagevisuals/speculoos "version 5"]
Namespaces
speculoos.core
This namespace provides functions to validate Clojure data. They operate on any heterogeneous, arbitrarily-nested data structure.
speculoos.function-specs
This namespace provides facilities to apply specifications to and validate functions. Roughly speaking, trying to replicate the instrumentation and testing capabilities of spec.alpha .
speculoos.utility
Utility functions to make using and interacting with Speculoos nicer.
Public variables and functions:
- *ordinal-offset*
- *such-that-max-tries*
- =10th
- =11th
- =12th
- =1st
- =2nd
- =3rd
- =4th
- =5th
- =6th
- =7th
- =8th
- =9th
- all-specs-okay
- apathetic
- basic-collection-spec-from-data
- clamp-every
- clamp-in*
- collections-without-predicates
- data-from-spec
- defpred
- exercise
- in?
- inspect-fn
- lazy-seq?
- non-predicates
- pred-sym->gen-sym
- predicate->generator
- predicates-without-collections
- predicates-without-scalars
- scalars-with-predicates
- scalars-without-predicates
- seq-regex
- sore-thumb
- spec-from-data
- swap-non-predicates
- thoroughly-valid-collections?
- thoroughly-valid-scalars?
- thoroughly-valid?
- unfindable-generators
- validate-predicate->generator