context("find_qty_var")
test_that("stop if not found", {
expect_error(
find_qty_var(
dplyr::select(test_data, -foo_qty)),
"matching")
})
test_that("return if found", {
expect_equal(
find_qty_var(test_data),
"foo_qty")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.