checkChoice(x, choices)assertChoice(x, choices, add = NULL, .var.name)
assert_choice(x, choices, add = NULL, .var.name)
testChoice(x, choices)
test_choice(x, choices)
expect_choice(x, choices, info = NULL, label = NULL)
atomic]
Set of possible values.AssertCollection]
Collection to store assertions. See AssertCollection.x. Defaults to a heuristic to determine
the name using deparse and substitute.expect_that..var.name, but passed down to expect_that.TRUE. If the check
is not successful, assertChoice/assert_choice
throws an error message, testChoice/test_choice
returns FALSE,
and checkChoice returns a string with the error message.
The function expect_choice always returns an
expectation.checkSetEqual,
checkSubset