powered by
prints_text(regexp, ...)
grepl
str(mtcars) expect_that(str(mtcars), prints_text("32 obs")) expect_that(str(mtcars), prints_text("11 variables")) expect_output(str(mtcars), "11 variables")
Run the code above in your browser using DataLab