Liking cljdoc? Tell your friends :D

examine.constraints

Functions that yield constraints and a set of default constraints.

Functions that yield constraints and a set of default constraints.
raw docstring

for-eachclj/s

(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.
sourceraw docstring

from-predclj/s

(from-pred pred message)

Takes a predicate and a message and returns a constraint.

Takes a predicate and a message and returns a constraint.
sourceraw docstring

has-itemsclj/s

Constraint-fn that passes if collection is not empty.

Constraint-fn that passes if collection is not empty.
sourceraw docstring

in-rangeclj/s

(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.
sourceraw docstring

is-booleanclj/s

(is-boolean x)

Constraint-fn that passes if value is true or false.

Constraint-fn that passes if value is true or false.
sourceraw docstring

is-dateclj/s

source

is-integerclj/s

Constraint-fn that passes if value is an integer.

Constraint-fn that passes if value is an integer.
sourceraw docstring

is-numberclj/s

Constraint-fn that passes if value is a number.

Constraint-fn that passes if value is a number.
sourceraw docstring

is-stringclj/s

Constraint-fn that passes if value is a string.

Constraint-fn that passes if value is a string.
sourceraw docstring

matches-reclj/s

(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.
sourceraw docstring

max-lengthclj/s

(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.
sourceraw docstring

min-le-maxclj/s

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.
sourceraw docstring

min-lengthclj/s

(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.
sourceraw docstring

no-exceptionclj/s

(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.
sourceraw docstring

not-blank?clj/s

Returns true if value is not nil and not an empty string

Returns true if value is not nil and not an empty string
sourceraw docstring

not-nil?clj/s

Returns true if value is not nil.

Returns true if value is not nil.
sourceraw docstring

of-type?clj/s

(of-type? typenames x)
source

one-ofclj/s

(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.
sourceraw docstring

requiredclj/s

Constraint-fn that passes if value is not blank.

Constraint-fn that passes if value is not blank.
sourceraw docstring

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

× close