package base_quickcheck
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Randomized testing framework, designed for compatibility with Base
Install
dune-project
Dependency
Authors
Maintainers
Sources
base_quickcheck-v0.15.0.tar.gz
sha256=360e6b8f3660398936ec88fecb9e7761370ee63acf8372d3208d4d31c00181f2
doc/base_quickcheck/Base_quickcheck/Test/index.html
Module Base_quickcheck.TestSource
Use the Test module to run randomized tests. Each randomized test needs a generator, a shrinker, and a property to test.
Defaults to a deterministic seed, shrink_count and test_count of 10_000 each, and sizes ranging from 0 to 30.
Source
val run :
f:('a -> Base.unit Base.Or_error.t) ->
?config:Config.t ->
?examples:'a Base.list ->
(module S with type t = 'a) ->
Base.unit Base.Or_error.tTests the property f, failing if it raises or returns Error _. Tests f first with any examples, then with values from the given generator. Only random values count toward the test_count total, not values from examples.
Source
val run_exn :
f:('a -> Base.unit) ->
?config:Config.t ->
?examples:'a Base.list ->
(module S with type t = 'a) ->
Base.unitLike run, but raises on failure.
Source
val result :
f:('a -> (Base.unit, 'e) Base.Result.t) ->
?config:Config.t ->
?examples:'a Base.list ->
(module S with type t = 'a) ->
(Base.unit, 'a * 'e) Base.Result.tLike run, but does not catch exceptions raised by f. Allows arbitrary error types and returns the input that failed along with the error.
Source
val with_sample :
f:('a Base.Sequence.t -> Base.unit Base.Or_error.t) ->
?config:Config.t ->
?examples:'a Base.list ->
'a Generator.t ->
Base.unit Base.Or_error.tCalls f with the sequence of values that run would get in the same configuration.
Source
val with_sample_exn :
f:('a Base.Sequence.t -> Base.unit) ->
?config:Config.t ->
?examples:'a Base.list ->
'a Generator.t ->
Base.unitLike with_sample, but raises on failure.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>