Create a dataframe to help visualise 'expected' values
expect_frame(data, expectation)
data | data.frame |
---|---|
expectation | unquoted conditions or "expectations" to test |
data.frames where expectation are true
# NOT RUN { dat_test <- tibble::tribble( ~x, ~y, -1, "A", 0, "B", 1, "C" ) expect_frame(dat_test, ~ .x == -1) # }