powered by
Randomly choose between generators
one_of(..., prob = NULL)
A quickcheck_generator object.
quickcheck_generator
A set of unnamed generators.
A vector of probability weights for obtaining the elements of the vector being sampled.
one_of(integer_(), character_()) %>% show_example() one_of(constant(NULL), logical_(), prob = c(0.1, 0.9)) %>% show_example()
Run the code above in your browser using DataLab