Functions that yield constraints and a set of default constraints.
Functions that yield constraints and a set of default constraints.
(for-each f)
Returns constraint-fn that applies constraint-fn f to cartesian product of collections.
Returns constraint-fn that applies constraint-fn f to cartesian product of collections.
(from-pred pred message)
Takes a predicate and a message and returns a constraint.
Takes a predicate and a message and returns a constraint.
Constraint-fn that passes if collection is not empty.
Constraint-fn that passes if collection is not empty.
(in-range min max)
Returns constraint-fn that passes if number is at least min, at most max.
Returns constraint-fn that passes if number is at least min, at most max.
(is-boolean x)
Constraint-fn that passes if value is true or false.
Constraint-fn that passes if value is true or false.
Constraint-fn that passes if value is an integer.
Constraint-fn that passes if value is an integer.
Constraint-fn that passes if value is a number.
Constraint-fn that passes if value is a number.
Constraint-fn that passes if value is a string.
Constraint-fn that passes if value is a string.
(matches-re re)
Returns constraint-fn that passes if string matches regular expression re.
Returns constraint-fn that passes if string matches regular expression re.
(max-length n)
Returns constraint-fn that passes if collection or string has at most n items/characters.
Returns constraint-fn that passes if collection or string has at most n items/characters.
Constraint-fn that passes if first arg is not greater than second arg.
Constraint-fn that passes if first arg is not greater than second arg.
(min-length n)
Returns constraint-fn that passes if collection or string has at least n items/characters.
Returns constraint-fn that passes if collection or string has at least n items/characters.
(no-exception f)
Takes a function with arbitrary number of arguments and returns a constraint that returns the exception message text if any is thrown.
Takes a function with arbitrary number of arguments and returns a constraint that returns the exception message text if any is thrown.
Returns true if value is not nil and not an empty string
Returns true if value is not nil and not an empty string
Returns true if value is not nil.
Returns true if value is not nil.
(one-of & values)
Returns constraint-fn that passes if value is one of the specified values.
Returns constraint-fn that passes if value is one of the specified values.
Constraint-fn that passes if value is not blank.
Constraint-fn that passes if value is not blank.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close