Skip to contents

Generate lists with contents corresponding to the values generated by the input generators.

Usage

list_(...)

Arguments

...

A set of named or unnamed generators.

Value

A quickcheck_generator object.

Examples

list_(integer_(), logical_()) %>% show_example()
#> [[1]]
#> [1] -2139     0 -2209 -7620  7327  1820 -7147  3433
#> 
#> [[2]]
#>  [1] FALSE  TRUE FALSE  TRUE  TRUE FALSE FALSE  TRUE FALSE  TRUE
#> 
list_(a = any_vector(), b = any_vector()) %>% show_example()
#> $a
#> [1]  9450  5461 -4350     0
#> 
#> $b
#> [1] "101-03-08 09:26:43 UTC"  "1757-11-26 06:39:55 UTC"
#> [3] "1426-08-17 09:13:26 UTC" "1385-12-24 09:28:29 UTC"
#> [5] "1816-09-17 15:41:12 UTC" "2797-05-16 12:48:16 UTC"
#> [7] "1066-12-14 06:46:18 UTC"
#>