expect_match(object, regexp, ..., all = TRUE, info = NULL, label = NULL)
grepl
ignore.case
fixed
regexp
NULL
comparison-expectations
equality-expectations
expect_equal_to_reference
expect_length
expect_named
inheritance-expectations
logical-expectations
output-expectations
expect_match("Testing is fun", "fun") expect_match("Testing is fun", "f.n") expect_match("Testing is fun", "horrible") # Zero-length inputs always fail expect_match(character(), ".")
Run the code above in your browser using DataLab