Liking cljdoc? Tell your friends :D
Clojure only.

active.quickcheck

A QuickCheck clone for Clojure.

A QuickCheck clone for Clojure.
raw docstring

==>cljmacro

(==> ?bool ?prop)

Create a property that only has to hold when its prerequisite holds.

Create a property that only has to hold when its prerequisite holds.
sourceraw docstring

and->arbitraryclj

(and->arbitrary a & args)
source

and->coarbitraryclj

(and->coarbitrary a & args)

Make a coarbitrary from a spec product

Make a coarbitrary from a spec product
sourceraw docstring

arbitrarycljmacro

(arbitrary form)

Convenient syntax for constructing arbitraries.

This is usually used implicitly via the property macro.

The argument form can be one of the following:

  • boolean, integer, byte, short, int, long, unsigned byte, unsigned-short, unsigned-int, unsigned-long natural, rational, float, char, ascii-char, printable-ascii-char, string, ascii-string, printable-ascii-string, byte-array, symbol, keyword
  • (one-of <equality> <expr> ...)
  • (tuple <arb> ...)
  • (list <arb>)
  • (vector <arb>)
  • (set <arb>)
  • (record <constructor> [<accessor> <arb> ...])
  • (mixed <pred> <arb> <pred> <arb> ...)
  • (map <arb1> <arb2>) ; map with keys from <arb1>, values from <arb2>
  • ~<expr>, which evaluates <expr> as a regular expression

The syntax is extensible via the expand-arbitrary multimethod.

Convenient syntax for constructing arbitraries.

This is usually used implicitly via the property macro.

The argument form can be one of the following:

- boolean, integer, byte, short, int, long, 
  unsigned byte, unsigned-short, unsigned-int, unsigned-long
  natural, rational, float, char, ascii-char,
  printable-ascii-char, string, ascii-string, printable-ascii-string,
  byte-array, symbol, keyword
- (one-of <equality> <expr> ...)
- (tuple <arb> ...)
- (list <arb>)
- (vector <arb>)
- (set <arb>)
- (record <constructor> [<accessor> <arb> ...])
- (mixed <pred> <arb> <pred> <arb> ...)
- (map <arb1> <arb2>) ; map with keys from <arb1>, values from <arb2>
- ~<expr>, which evaluates <expr> as a regular expression

The syntax is extensible via the expand-arbitrary multimethod.
sourceraw docstring

arbitrary-ascii-charclj

Arbitrary ASCII character.

Arbitrary ASCII character.
sourceraw docstring

arbitrary-ascii-letterclj

Arbitrary ASCII letter.

Arbitrary ASCII letter.
sourceraw docstring

arbitrary-ascii-stringclj

Arbitrary string of ASCII characters.

Arbitrary string of ASCII characters.
sourceraw docstring

arbitrary-ascii-string-in-rangeclj

(arbitrary-ascii-string-in-range lower upper)

Arbitrary string of ASCII characters in range (lower,upper).

Arbitrary string of ASCII characters in range (lower,upper).
sourceraw docstring

arbitrary-booleanclj

Arbitrary boolean.

Arbitrary boolean.
sourceraw docstring

arbitrary-byteclj

Arbitrary byte.

Arbitrary byte.
sourceraw docstring

arbitrary-byte-arrayclj

Arbitrary byte-array.

Arbitrary byte-array.
sourceraw docstring

arbitrary-byte-array-in-rangeclj

(arbitrary-byte-array-in-range arbitrary-el lower upper)

Arbitrary byte-array in range (lower,uppper).

Arbitrary byte-array in range (lower,uppper).
sourceraw docstring

arbitrary-charclj

Arbitrary char.

Arbitrary char.
sourceraw docstring

arbitrary-coll-ofclj

(arbitrary-coll-of arbitrary-el & kwargs)

Arbitrary collection mimicking Clojure spec's coll-of

Arbitrary collection mimicking Clojure spec's coll-of
sourceraw docstring

arbitrary-floatclj

Arbitrary float.

Arbitrary float.
sourceraw docstring

arbitrary-functionclj

(arbitrary-function arbitrary-result & coarbitrary-args)

Arbitrary function.

Arbitrary function.
sourceraw docstring

arbitrary-generatorclj

(arbitrary-generator Arbitrary-type)

Lens for the generator field from a Arbitrary-type record. See active.quickcheck/make-arbitrary.

Lens for the `generator` field from a [[Arbitrary-type]] record. See [[active.quickcheck/make-arbitrary]].
sourceraw docstring

arbitrary-intclj

Arbitrary int.

Arbitrary int.
sourceraw docstring

arbitrary-integerclj

Arbitrary integer.

Arbitrary integer.
sourceraw docstring

arbitrary-integer-from-toclj

(arbitrary-integer-from-to from to)

Arbitrary integer from range.

Arbitrary integer from range.
sourceraw docstring

arbitrary-keywordclj

Arbitrary keyword.

Arbitrary keyword.
sourceraw docstring

arbitrary-listclj

(arbitrary-list arbitrary-el)

Arbitrary list.

Arbitrary list.
sourceraw docstring

arbitrary-list-in-rangeclj

(arbitrary-list-in-range arbitrary-el lower upper)

Arbitrary list in range (lower,uppper).

Arbitrary list in range (lower,uppper).
sourceraw docstring

arbitrary-longclj

Arbitrary long.

Arbitrary long.
sourceraw docstring

arbitrary-mapclj

(arbitrary-map arbitrary-key arbitrary-value)

Arbitrary map over the given arbitrary key and value.

Arbitrary map over the given arbitrary key and value.
sourceraw docstring

arbitrary-mixedclj

(arbitrary-mixed pred+arbitrary-promise-list)

Arbitrary value from one of a list of (promises of) arbitraries.

Arbitrary value from one of a list of (promises of) arbitraries.
sourceraw docstring

arbitrary-naturalclj

Arbitrary natural number.

Arbitrary natural number.
sourceraw docstring

arbitrary-one-ofclj

(arbitrary-one-of eql? & vals)

Arbitrary value from a list of values, and equality predicate.

Arbitrary value from a list of values, and equality predicate.
sourceraw docstring

arbitrary-printable-ascii-charclj

Arbitrary printable ASCII character.

Arbitrary printable ASCII character.
sourceraw docstring

arbitrary-printable-ascii-stringclj

Arbitrary string of printable ASCII characters.

Arbitrary string of printable ASCII characters.
sourceraw docstring

arbitrary-printable-ascii-string-in-rangeclj

(arbitrary-printable-ascii-string-in-range lower upper)

Arbitrary string of printable ASCII characters in range (lower,upper).

Arbitrary string of printable ASCII characters in range (lower,upper).
sourceraw docstring

arbitrary-rationalclj

Arbitrary rational number.

Arbitrary rational number.
sourceraw docstring

arbitrary-recordclj

(arbitrary-record construct accessors & arbitrary-els)

Arbitrary record.

Arbitrary record.
sourceraw docstring

arbitrary-sequence-likeclj

(arbitrary-sequence-like list->sequence arbitrary-el)

Arbitrary sequence-like container.

Arbitrary sequence-like container.
sourceraw docstring

arbitrary-sequence-like-in-rangeclj

(arbitrary-sequence-like-in-range list->sequence arbitrary-el lower upper)

Arbitrary sequence-like container.

Arbitrary sequence-like container.
sourceraw docstring

arbitrary-setclj

(arbitrary-set arbitrary-el)

Arbitrary set.

Arbitrary set.
sourceraw docstring

arbitrary-shortclj

Arbitrary short.

Arbitrary short.
sourceraw docstring

arbitrary-stringclj

Arbitrary string.

Arbitrary string.
sourceraw docstring

arbitrary-string-in-rangeclj

(arbitrary-string-in-range lower upper)

Arbitrary string in range (lower,upper).

Arbitrary string in range (lower,upper).
sourceraw docstring

arbitrary-symbolclj

Arbitrary symbol.

Arbitrary symbol.
sourceraw docstring

arbitrary-tupleclj

(arbitrary-tuple & arbitrary-els)

Arbitrary fixed-size vector.

Arbitrary fixed-size vector.
sourceraw docstring

Arbitrary-typeclj

source

arbitrary-unsigned-byteclj

Arbitrary unsigned byte.

Arbitrary unsigned byte.
sourceraw docstring

arbitrary-unsigned-intclj

Arbitrary unsigned int.

Arbitrary unsigned int.
sourceraw docstring

arbitrary-unsigned-longclj

Arbitrary unsigned long.

Arbitrary unsigned long.
sourceraw docstring

arbitrary-unsigned-shortclj

Arbitrary unsigned short.

Arbitrary unsigned short.
sourceraw docstring

arbitrary-vectorclj

(arbitrary-vector arbitrary-el)

Arbitrary vector.

Arbitrary vector.
sourceraw docstring

arbitrary-vector-in-rangeclj

(arbitrary-vector-in-range arbitrary-el lower upper)

Arbitrary vector in range (lower,uppper).

Arbitrary vector in range (lower,uppper).
sourceraw docstring

arbitrary?clj

(arbitrary? thing)

Is object a Arbitrary-type record? See active.quickcheck/make-arbitrary.

Is object a `Arbitrary-type` record? See [[active.quickcheck/make-arbitrary]].
sourceraw docstring

checkclj

(check config prop)

Run a property against a configuration and report results.

Run a property against a configuration and report results.
sourceraw docstring

check-result-arguments-listclj

(check-result-arguments-list Check-result-type)

Lens for the arguments-list field from a Check-result-type record. See active.quickcheck/make-check-result.

Lens for the `arguments-list` field from a [[Check-result-type]] record. See [[active.quickcheck/make-check-result]].
sourceraw docstring

check-result-error-setclj

(check-result-error-set Check-result-type)

Lens for the error-set field from a Check-result-type record. See active.quickcheck/make-check-result.

Lens for the `error-set` field from a [[Check-result-type]] record. See [[active.quickcheck/make-check-result]].
sourceraw docstring

check-result-okclj

(check-result-ok Check-result-type)

Lens for the ok field from a Check-result-type record. See active.quickcheck/make-check-result.

Lens for the `ok` field from a [[Check-result-type]] record. See [[active.quickcheck/make-check-result]].
sourceraw docstring

check-result-stampclj

(check-result-stamp Check-result-type)

Lens for the stamp field from a Check-result-type record. See active.quickcheck/make-check-result.

Lens for the `stamp` field from a [[Check-result-type]] record. See [[active.quickcheck/make-check-result]].
sourceraw docstring

Check-result-typeclj

source

check-result?clj

(check-result? thing)

Is object a Check-result-type record? See active.quickcheck/make-check-result.

Is object a `Check-result-type` record? See [[active.quickcheck/make-check-result]].
sourceraw docstring

check-resultsclj

(check-results config prop)

Run a property against a configuration and return results.

Run a property against a configuration and return results.
sourceraw docstring

choose-alphanumeric-charclj

source

choose-ascii-charclj

Generator for ASCII characters.

Generator for ASCII characters.
sourceraw docstring

choose-ascii-letterclj

Generator for ASCII alphabetic letters.

Generator for ASCII alphabetic letters.
sourceraw docstring

choose-byteclj

Generator for bytes in [-128, 127].

Generator for bytes in [-128, 127].
sourceraw docstring

choose-byte-arrayclj

(choose-byte-array n)

Generator for a byte array with size n.

Generator for a byte array with size n.
sourceraw docstring

choose-byte-array-in-rangeclj

(choose-byte-array-in-range el-gen lower upper)
source

choose-charclj

(choose-char lower upper)

Generator for chars within a range, bonds are inclusive.

Generator for chars within a range, bonds are inclusive.
sourceraw docstring

choose-floatclj

(choose-float lower upper)

Generator for floats within a range, bounds are inclusive.

Generator for floats within a range, bounds are inclusive.
sourceraw docstring

choose-intclj

Generator for ints in [-2147483648, 2147483647].

Generator for ints in [-2147483648, 2147483647].
sourceraw docstring

choose-integerclj

(choose-integer lower upper)

Generator for integers within a range, bounds are inclusive.

Generator for integers within a range, bounds are inclusive.
sourceraw docstring

choose-keywordclj

(choose-keyword n)

Generator for a keyword with size n+1.

Generator for a keyword with size n+1.
sourceraw docstring

choose-listclj

(choose-list el-gen n)

Generator for a list of values with size n.

Generator for a list of values with size n.
sourceraw docstring

choose-list-in-rangeclj

(choose-list-in-range el-gen lower upper)
source

choose-longclj

Generator for longs in [-9223372036854775808, 9223372036854775807].

Generator for longs in [-9223372036854775808, 9223372036854775807].
sourceraw docstring

choose-mapclj

(choose-map el-gen n)

Generator for a map with size n. The passed element generator must generate key-value pairs.

Generator for a map with size n. The passed element generator must
generate key-value pairs.
sourceraw docstring

choose-mixedclj

(choose-mixed gens)

Generator that chooses from a sequence of generators. This has no shrinking between the gens

Generator that chooses from a sequence of generators.
This has no shrinking between the gens
sourceraw docstring

choose-non-numeric-charclj

source

choose-one-ofclj

(choose-one-of lis)

Make a generator that yields one of a list of values.

Make a generator that yields one of a list of values.
sourceraw docstring

choose-printable-ascii-charclj

Generator for printable ASCII characters.

Generator for printable ASCII characters.
sourceraw docstring

choose-setclj

(choose-set el-gen n)

Generator for a set with size <= n

Generator for a set with size <= n
sourceraw docstring

choose-shortclj

Generator for shorts in [-32768, 32767].

Generator for shorts in [-32768, 32767].
sourceraw docstring

choose-stringclj

(choose-string char-gen n)

Generator for a string with size n.

Generator for a string with size n.
sourceraw docstring

choose-string-in-rangeclj

(choose-string-in-range el-gen lower upper)
source

choose-symbolclj

(choose-symbol n)

Generator for a symbol with size n+1.

Generator for a symbol with size n+1.
sourceraw docstring

choose-unsigned-byteclj

Generator for bytes in [0, 255].

Generator for bytes in [0, 255].
sourceraw docstring

choose-unsigned-intclj

Generator for bytes in [0, 4294967295].

Generator for bytes in [0, 4294967295].
sourceraw docstring

choose-unsigned-longclj

Generator for bytes in [0, 18446744073709551615].

Generator for bytes in [0, 18446744073709551615].
sourceraw docstring

choose-unsigned-shortclj

Generator for bytes in [0, 65535].

Generator for bytes in [0, 65535].
sourceraw docstring

choose-vectorclj

(choose-vector el-gen n)

Generator for a vector with size n.

Generator for a vector with size n.
sourceraw docstring

choose-vector-in-rangeclj

(choose-vector-in-range el-gen lower upper)
source

choose-with-frequenciesclj

(choose-with-frequencies lis)

Generator that chooses from a sequence of (frequency generator) pairs.

Generator that chooses from a sequence of (frequency generator) pairs.
sourceraw docstring

classifycljmacro

(classify ?really? ?str ?testable)

Classify some test cases of a testable.

Classify some test cases of a testable.
sourceraw docstring

coarbitrarycljmacro

(coarbitrary form)
source

coarbitrary-ascii-charclj

Coarbitrary ASCII character.

Coarbitrary ASCII character.
sourceraw docstring

coarbitrary-ascii-letterclj

Coarbitrary ASCII letter.

Coarbitrary ASCII letter.
sourceraw docstring

coarbitrary-ascii-stringclj

Coarbitrary string of ASCII characters.

Coarbitrary string of ASCII characters.
sourceraw docstring

coarbitrary-booleanclj

Coarbitrary boolean

Coarbitrary boolean
sourceraw docstring

coarbitrary-byteclj

Coarbitrary byte.

Coarbitrary byte.
sourceraw docstring

coarbitrary-byte-arrayclj

coarbitrary byte-array.

coarbitrary byte-array.
sourceraw docstring

coarbitrary-charclj

Coarbitrary char.

Coarbitrary char.
sourceraw docstring

coarbitrary-coarbitraryclj

(coarbitrary-coarbitrary Coarbitrary-type)

Lens for the coarbitrary field from a Coarbitrary-type record. See active.quickcheck/make-coarbitrary.

Lens for the `coarbitrary` field from a [[Coarbitrary-type]] record. See [[active.quickcheck/make-coarbitrary]].
sourceraw docstring

coarbitrary-coll-ofclj

(coarbitrary-coll-of arbitrary-el & kwargs)

Coarbitrary collection mimicking Clojure spec's coll-of

Coarbitrary collection mimicking Clojure spec's coll-of
sourceraw docstring

coarbitrary-floatclj

Coarbitrary float.

Coarbitrary float.
sourceraw docstring

coarbitrary-functionclj

(coarbitrary-function coarbitrary-result & arbitrary-args)

Coarbitrary function.

Coarbitrary function.
sourceraw docstring

coarbitrary-intclj

Coarbitrary int.

Coarbitrary int.
sourceraw docstring

coarbitrary-integerclj

Arbitrary integer.

Arbitrary integer.
sourceraw docstring

coarbitrary-integer-from-toclj

(coarbitrary-integer-from-to from to)

Coarbitrary integer from range.

Coarbitrary integer from range.
sourceraw docstring

coarbitrary-keywordclj

Coarbitrary keyword.

Coarbitrary keyword.
sourceraw docstring

coarbitrary-listclj

(coarbitrary-list coarbitrary-el)

Coarbitrary list.

Coarbitrary list.
sourceraw docstring

coarbitrary-longclj

Coarbitrary long.

Coarbitrary long.
sourceraw docstring

coarbitrary-mapclj

(coarbitrary-map coarbitrary-key coarbitrary-value)

coarbitrary map over the given arbitrary key and value.

coarbitrary map over the given arbitrary key and value.
sourceraw docstring

coarbitrary-mixedclj

(coarbitrary-mixed pred+arbitrary-promise-list)

Arbitrary value from one of a list of (promises of) arbitraries.

Arbitrary value from one of a list of (promises of) arbitraries.
sourceraw docstring

coarbitrary-naturalclj

Coarbitrary natural number

Coarbitrary natural number
sourceraw docstring

coarbitrary-one-ofclj

(coarbitrary-one-of eql? & vals)

Coarbitrary value from a list of values, and equality predicate.

Coarbitrary value from a list of values, and equality predicate.
sourceraw docstring

coarbitrary-printable-ascii-charclj

Coarbitrary printable ASCII character.

Coarbitrary printable ASCII character.
sourceraw docstring

coarbitrary-rationalclj

Coarbitrary rational number.

Coarbitrary rational number.
sourceraw docstring

coarbitrary-recordclj

(coarbitrary-record construct accessors & coarbitrary-els)

Coarbitrary record.

Coarbitrary record.
sourceraw docstring

coarbitrary-sequence-likeclj

(coarbitrary-sequence-like choose-sequence sequence->list coarbitrary-el)

Coarbitrary sequence-like container.

Coarbitrary sequence-like container.
sourceraw docstring

coarbitrary-setclj

(coarbitrary-set coarbitrary-el)

Coarbitrary set.

Coarbitrary set.
sourceraw docstring

coarbitrary-shortclj

Coarbitrary short.

Coarbitrary short.
sourceraw docstring

coarbitrary-stringclj

Coarbitrary string.

Coarbitrary string.
sourceraw docstring

coarbitrary-symbolclj

Coarbitrary symbol.

Coarbitrary symbol.
sourceraw docstring

coarbitrary-tupleclj

(coarbitrary-tuple & coarbitrary-els)
source

Coarbitrary-typeclj

source

coarbitrary-unsigned-byteclj

Coarbitrary unsigned byte.

Coarbitrary unsigned byte.
sourceraw docstring

coarbitrary-unsigned-intclj

Coarbitrary unsigned int.

Coarbitrary unsigned int.
sourceraw docstring

coarbitrary-unsigned-longclj

Coarbitrary unsigned long.

Coarbitrary unsigned long.
sourceraw docstring

coarbitrary-unsigned-shortclj

Coarbitrary unsigned short.

Coarbitrary unsigned short.
sourceraw docstring

coarbitrary-vectorclj

(coarbitrary-vector coarbitrary-el)

Coarbitrary vector.

Coarbitrary vector.
sourceraw docstring

coarbitrary?clj

(coarbitrary? thing)

Is object a Coarbitrary-type record? See active.quickcheck/make-coarbitrary.

Is object a `Coarbitrary-type` record? See [[active.quickcheck/make-coarbitrary]].
sourceraw docstring

coerce->generatorclj

(coerce->generator thing)

Coerce an object to a generator.

Coerce an object to a generator.
sourceraw docstring

coerce->result-generatorclj

(coerce->result-generator thing)

Coerce an object to a result generator.

Coerce an object to a result generator.
sourceraw docstring

coerce->treeclj

(coerce->tree arg)
source

coll-of->arbitraryclj

(coll-of->arbitrary a & kwargs)
source

coll-of->coarbitraryclj

(coll-of->coarbitrary a & kwargs)
source

collectclj

(collect lbl testable)

Label a testable value with an the string representation of an object.

Label a testable value with an the string representation of an object.
sourceraw docstring

Config-typeclj

source

current-graphclj

(current-graph myfn)
source

expand-arbitrarycljmultimethod

Multimethod to expand `arbitrary' forms.

Dispatches on the symbol for atomic arbitrary forms, and on [op] for compound arbitrary forms, where op is the operator.

Multimethod to expand `arbitrary' forms.

Dispatches on the symbol for atomic arbitrary forms,
and on [op] for compound arbitrary forms, where op is
the operator.
sourceraw docstring

expand-coarbitrarycljmultimethod

Multimethod to expand `coarbitrary' forms.

Dispatches on the symbol for atomic coarbitrary forms, and on [op] for compound coarbitrary forms, where op is the operator.

Multimethod to expand `coarbitrary' forms.

Dispatches on the symbol for atomic coarbitrary forms,
and on [op] for compound coarbitrary forms, where op is
the operator.
sourceraw docstring

find-failingclj

(find-failing smaller func)
source

fmcljmacro

(fm [& args] [& body])
source

fn->arbitraryclj

(fn->arbitrary fun)
source

fn->coarbitraryclj

(fn->coarbitrary fun)
source

for-all-with-shrink-with-namesclj

(for-all-with-shrink-with-names func arg-names arg-trees)

Bind name to generated value, try to shrink, supplying informative name.,

Bind name to generated value, try to shrink, supplying informative name.,
sourceraw docstring

function-memorize?clj

(function-memorize? arg)
source

gen->arbitraryclj

(gen->arbitrary gen)

Make a spec gen specification into an arbitrary.

Make a spec gen specification into an arbitrary.
sourceraw docstring

generateclj

(generate n rgen gen max-shrink-depth)

Extract a value from a generator, using size n and random generator rgen.

Extract a value from a generator, using size n and random generator rgen.
sourceraw docstring

generate-one-ofclj

(generate-one-of arbs)

Randomly choose one of a list of given arbitraries

Randomly choose one of a list of given arbitraries
sourceraw docstring

get-max-shrink-depthclj

source

Get-max-shrink-depth-typeclj

source

get-max-shrink-depth?clj

(get-max-shrink-depth? thing)

Is object a Get-max-shrink-depth-type record? See active.quickcheck/make-get-max-shrink-depth.

Is object a `Get-max-shrink-depth-type` record? See [[active.quickcheck/make-get-max-shrink-depth]].
sourceraw docstring

get-random-generatorclj

source

Get-random-generator-typeclj

source

get-random-generator?clj

(get-random-generator? thing)

Is object a Get-random-generator-type record? See active.quickcheck/make-get-random-generator.

Is object a `Get-random-generator-type` record? See [[active.quickcheck/make-get-random-generator]].
sourceraw docstring

get-sizeclj

source

Get-size-typeclj

source

get-size?clj

(get-size? thing)

Is object a Get-size-type record? See active.quickcheck/make-get-size.

Is object a `Get-size-type` record? See [[active.quickcheck/make-get-size]].
sourceraw docstring

labelclj

(label str testable)

Label a testable value.

Label a testable value.
sourceraw docstring

lift->generatorclj

source

make-arbitraryclj

(make-arbitrary generator)

Construct a Arbitrary-type record.

generator: access via active.quickcheck/arbitrary-generator

Construct a `Arbitrary-type` record.

`generator`: access via [[active.quickcheck/arbitrary-generator]]
sourceraw docstring

make-check-resultclj

(make-check-result ok stamp arguments-list error-set)

Construct a Check-result-type record.

ok: access via active.quickcheck/check-result-ok stamp: access via active.quickcheck/check-result-stamp arguments-list: access via active.quickcheck/check-result-arguments-list error-set: access via active.quickcheck/check-result-error-set

Construct a `Check-result-type` record.

`ok`: access via [[active.quickcheck/check-result-ok]]
`stamp`: access via [[active.quickcheck/check-result-stamp]]
`arguments-list`: access via [[active.quickcheck/check-result-arguments-list]]
`error-set`: access via [[active.quickcheck/check-result-error-set]]
sourceraw docstring

make-coarbitraryclj

(make-coarbitrary coarbitrary)

Construct a Coarbitrary-type record.

coarbitrary: access via active.quickcheck/coarbitrary-coarbitrary

Construct a `Coarbitrary-type` record.

`coarbitrary`: access via [[active.quickcheck/coarbitrary-coarbitrary]]
sourceraw docstring

make-configclj

(make-config max-test max-fail max-shrink-depth size print-every)

Construct a Config-type record.

max-test: access via active.quickcheck/make-config-max-test max-fail: access via active.quickcheck/make-config-max-fail max-shrink-depth: access via active.quickcheck/make-config-max-shrink-depth size: access via active.quickcheck/make-config-size print-every: access via active.quickcheck/make-config-print-every

Construct a `Config-type` record.

`max-test`: access via [[active.quickcheck/make-config-max-test]]
`max-fail`: access via [[active.quickcheck/make-config-max-fail]]
`max-shrink-depth`: access via [[active.quickcheck/make-config-max-shrink-depth]]
`size`: access via [[active.quickcheck/make-config-size]]
`print-every`: access via [[active.quickcheck/make-config-print-every]]
sourceraw docstring

make-config-max-failclj

(make-config-max-fail Config-type)

Lens for the max-fail field from a Config-type record. See active.quickcheck/make-config.

Lens for the `max-fail` field from a [[Config-type]] record. See [[active.quickcheck/make-config]].
sourceraw docstring

make-config-max-shrink-depthclj

(make-config-max-shrink-depth Config-type)

Lens for the max-shrink-depth field from a Config-type record. See active.quickcheck/make-config.

Lens for the `max-shrink-depth` field from a [[Config-type]] record. See [[active.quickcheck/make-config]].
sourceraw docstring

make-config-max-testclj

(make-config-max-test Config-type)

Lens for the max-test field from a Config-type record. See active.quickcheck/make-config.

Lens for the `max-test` field from a [[Config-type]] record. See [[active.quickcheck/make-config]].
sourceraw docstring

make-config-print-everyclj

(make-config-print-every Config-type)

Lens for the print-every field from a Config-type record. See active.quickcheck/make-config.

Lens for the `print-every` field from a [[Config-type]] record. See [[active.quickcheck/make-config]].
sourceraw docstring

make-config-sizeclj

(make-config-size Config-type)

Lens for the size field from a Config-type record. See active.quickcheck/make-config.

Lens for the `size` field from a [[Config-type]] record. See [[active.quickcheck/make-config]].
sourceraw docstring

make-config?clj

(make-config? thing)

Is object a Config-type record? See active.quickcheck/make-config.

Is object a `Config-type` record? See [[active.quickcheck/make-config]].
sourceraw docstring

make-get-max-shrink-depthclj

(make-get-max-shrink-depth)

Construct a Get-max-shrink-depth-type record.

Construct a `Get-max-shrink-depth-type` record.
sourceraw docstring

make-get-random-generatorclj

(make-get-random-generator)

Construct a Get-random-generator-type record.

Construct a `Get-random-generator-type` record.
sourceraw docstring

make-get-sizeclj

(make-get-size)

Construct a Get-size-type record.

Construct a `Get-size-type` record.
sourceraw docstring

make-maybe-with-treeclj

(make-maybe-with-tree maybe-tree)

Construct a Maybe-with-tree-type record.

maybe-tree: access via active.quickcheck/maybe-get-tree

Construct a `Maybe-with-tree-type` record.

`maybe-tree`: access via [[active.quickcheck/maybe-get-tree]]
sourceraw docstring

make-promoteclj

(make-promote func)

Construct a Promote-type record.

func: access via active.quickcheck/promote-func

Construct a `Promote-type` record.

`func`: access via [[active.quickcheck/promote-func]]
sourceraw docstring

make-propertyclj

(make-property func arg-names args)

Construct a Property-type record.

func: access via active.quickcheck/property-func arg-names: access via active.quickcheck/property-arg-names args: access via active.quickcheck/property-args

Construct a `Property-type` record.

`func`: access via [[active.quickcheck/property-func]]
`arg-names`: access via [[active.quickcheck/property-arg-names]]
`args`: access via [[active.quickcheck/property-args]]
sourceraw docstring

make-variantclj

(make-variant v gen)

Construct a Variant-type record.

v: access via active.quickcheck/variant-v gen: access via active.quickcheck/variant-generator

Construct a `Variant-type` record.

`v`: access via [[active.quickcheck/variant-v]]
`gen`: access via [[active.quickcheck/variant-generator]]
sourceraw docstring

make-with-sizeclj

(make-with-size size generator)

Construct a With-size-type record.

size: access via active.quickcheck/with-size-size generator: access via active.quickcheck/with-size-generator

Construct a `With-size-type` record.

`size`: access via [[active.quickcheck/with-size-size]]
`generator`: access via [[active.quickcheck/with-size-generator]]
sourceraw docstring

map-of->arbitraryclj

(map-of->arbitrary ks vs)
source

map-of->coarbitraryclj

(map-of->coarbitrary ks vs)
source

maybe-get-treeclj

(maybe-get-tree Maybe-with-tree-type)

Lens for the maybe-tree field from a Maybe-with-tree-type record. See active.quickcheck/make-maybe-with-tree.

Lens for the `maybe-tree` field from a [[Maybe-with-tree-type]] record. See [[active.quickcheck/make-maybe-with-tree]].
sourceraw docstring

maybe-with-treeclj

source

Maybe-with-tree-typeclj

source

maybe-with-tree?clj

(maybe-with-tree? thing)

Is object a Maybe-with-tree-type record? See active.quickcheck/make-maybe-with-tree.

Is object a `Maybe-with-tree-type` record? See [[active.quickcheck/make-maybe-with-tree]].
sourceraw docstring

MyFnclj

source

nothingclj

source

oneofclj

(oneof gs)

Haskell QuickCheck's oneof

Haskell QuickCheck's oneof
sourceraw docstring

or->arbitraryclj

(or->arbitrary & args)
source

or->coarbitraryclj

(or->coarbitrary & args)
source

pickclj

(pick n lis)

Pick an element from a sequence of (frequency, generator) pairs.

Pick an element from a sequence of (frequency, generator) pairs.
sourceraw docstring

promoteclj

source

promote-funcclj

(promote-func Promote-type)

Lens for the func field from a Promote-type record. See active.quickcheck/make-promote.

Lens for the `func` field from a [[Promote-type]] record. See [[active.quickcheck/make-promote]].
sourceraw docstring

Promote-typeclj

source

promote?clj

(promote? thing)

Is object a Promote-type record? See active.quickcheck/make-promote.

Is object a `Promote-type` record? See [[active.quickcheck/make-promote]].
sourceraw docstring

propertycljmacro

(property clauses body0 & bodies)

Create a property through binding identifiers to arbitraries.

The clauses are a vector of alternating identifiers and arbitraries, which are implicitly in the syntax understood by the arbitrary macro.

The body can use the identifiers, and should evaluate to a boolean saying whether the property is satisfied.

Create a property through binding identifiers to arbitraries.

The clauses are a vector of alternating identifiers and arbitraries,
which are implicitly in the syntax understood by the arbitrary macro.

The body can use the identifiers, and should evaluate to a boolean
saying whether the property is satisfied.
sourceraw docstring

property-arg-namesclj

(property-arg-names Property-type)

Lens for the arg-names field from a Property-type record. See active.quickcheck/make-property.

Lens for the `arg-names` field from a [[Property-type]] record. See [[active.quickcheck/make-property]].
sourceraw docstring

property-argsclj

(property-args Property-type)

Lens for the args field from a Property-type record. See active.quickcheck/make-property.

Lens for the `args` field from a [[Property-type]] record. See [[active.quickcheck/make-property]].
sourceraw docstring

property-funcclj

(property-func Property-type)

Lens for the func field from a Property-type record. See active.quickcheck/make-property.

Lens for the `func` field from a [[Property-type]] record. See [[active.quickcheck/make-property]].
sourceraw docstring

Property-typeclj

source

property?clj

(property? thing)

Is object a Property-type record? See active.quickcheck/make-property.

Is object a `Property-type` record? See [[active.quickcheck/make-property]].
sourceraw docstring

quickclj

Quick test-run configuration with minimal output.

Quick test-run configuration with minimal output.
sourceraw docstring

quickcheckclj

(quickcheck prop)

Run a property against the `quick' configuration and report results.

Run a property against the `quick' configuration and report results.
sourceraw docstring

quickcheck-resultsclj

(quickcheck-results prop)

Run a property against the `quick' configuration and return results.

Run a property against the `quick' configuration and return results.
sourceraw docstring

resizeclj

source

result-add-argument-if-emptyclj

(result-add-argument-if-empty res arg)
source

result-add-argumentsclj

(result-add-arguments res args)
source

result-add-errorsclj

(result-add-errors res args)
source

result-mappedclj

(result-mapped result1 result2)

Monoidal plus of result.

Monoidal plus of result.
sourceraw docstring

sequ-with-treeclj

(sequ-with-tree ms)

Evaluate each action in the sequence from left to right, and collect the results.

Evaluate each action in the sequence from left to right, and collect the results.
sourceraw docstring

set->arbitraryclj

(set->arbitrary s)

Make an arbitrary from a set (behaviour like enum)

Make an arbitrary from a set (behaviour like enum)
sourceraw docstring

set->coarbitraryclj

(set->coarbitrary s)

Make a coarbitrary from a set (behaviour like enum)

Make a coarbitrary from a set (behaviour like enum)
sourceraw docstring

shrinkingclj

(shrinking arg-names args func fuel)

get shrinks of args and find failing result in the resulting list recursive call shrinking as long as there is a failing result.

get shrinks of args and find failing result in the resulting list
recursive call shrinking as long as there is a failing result.
sourceraw docstring

sizedclj

(sized func)

Apply a size to a generator.

Apply a size to a generator.
sourceraw docstring

spec->arbitraryclj

(spec->arbitrary spec)

Make an arbitrary from a clojure spec

Make an arbitrary from a clojure spec
sourceraw docstring

spec->coarbitraryclj

(spec->coarbitrary spec)

Make a coarbitrary from a clojure spec

Make a coarbitrary from a clojure spec
sourceraw docstring

spec-form->arbitraryclj

(spec-form->arbitrary form)

Make an arbitrary from a s/formed spec

Make an arbitrary from a s/formed spec
sourceraw docstring

spec-form->coarbitraryclj

(spec-form->coarbitrary form)

Make a coarbitrary from a s/formed spec

Make a coarbitrary from a s/formed spec
sourceraw docstring

spec-op->arbitraryclj

(spec-op->arbitrary op args)

Make an arbitrary from a spec op

Make an arbitrary from a spec op
sourceraw docstring

spec-op->coarbitraryclj

(spec-op->coarbitrary op args)

Make a coarbitrary from a spec op

Make a coarbitrary from a spec op
sourceraw docstring

such-thatclj

(such-that arb pred)

Takes a generator and a predicate and returns a new generator that satisfies the predicate.

Takes a generator and a predicate and
returns a new generator that satisfies
the predicate.
sourceraw docstring

such-that-generatorclj

(such-that-generator gen pred)
source

such-that-maybeclj

(such-that-maybe gen pred)
source

symbol->arbitraryclj

(symbol->arbitrary sym)
source

symbol->coarbitraryclj

(symbol->coarbitrary sym)
source

trivialcljmacro

(trivial ?really? ?testable)

Classify some test cases of a testable as trivial.

Classify some test cases of a testable as trivial.
sourceraw docstring

value->treeclj

(value->tree arg)
source

variantclj

source

variant-generatorclj

(variant-generator Variant-type)

Lens for the gen field from a Variant-type record. See active.quickcheck/make-variant.

Lens for the `gen` field from a [[Variant-type]] record. See [[active.quickcheck/make-variant]].
sourceraw docstring

Variant-typeclj

source

variant-vclj

(variant-v Variant-type)

Lens for the v field from a Variant-type record. See active.quickcheck/make-variant.

Lens for the `v` field from a [[Variant-type]] record. See [[active.quickcheck/make-variant]].
sourceraw docstring

variant?clj

(variant? thing)

Is object a Variant-type record? See active.quickcheck/make-variant.

Is object a `Variant-type` record? See [[active.quickcheck/make-variant]].
sourceraw docstring

verboseclj

Quick test-run configuration with verbose output.

Quick test-run configuration with verbose output.
sourceraw docstring

with-size-generatorclj

(with-size-generator With-size-type)

Lens for the generator field from a With-size-type record. See active.quickcheck/make-with-size.

Lens for the `generator` field from a [[With-size-type]] record. See [[active.quickcheck/make-with-size]].
sourceraw docstring

with-size-sizeclj

(with-size-size With-size-type)

Lens for the size field from a With-size-type record. See active.quickcheck/make-with-size.

Lens for the `size` field from a [[With-size-type]] record. See [[active.quickcheck/make-with-size]].
sourceraw docstring

With-size-typeclj

source

with-size?clj

(with-size? thing)

Is object a With-size-type record? See active.quickcheck/make-with-size.

Is object a `With-size-type` record? See [[active.quickcheck/make-with-size]].
sourceraw docstring

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

× close