Nothing
test_that("one_of doesn't modify a single generator", {
for_all(
a = anything(),
property = function(a) {
for_all(
b = one_of(constant(a)),
property = function(b) expect_equal(a, b),
tests = nested_tests()
)
},
tests = nested_tests()
)
})
test_that("one_of can ignore the first generator", {
for_all(
a = one_of(
integer_positive(),
integer_negative(),
prob = c(0, 1)
),
property = function(a) all(a < 0L) %>% expect_true()
)
})
test_that("one_of can ignore the second generator", {
for_all(
a = one_of(
integer_positive(),
integer_negative(),
prob = c(1, 0)
),
property = function(a) all(a > 0L) %>% expect_true()
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.