test_that("find_words uses proper regex", {
expect_equal(find_words("^[ab]", c("a", "b", "c"), ), c("a", "b"))
})
test_that("find_words negate argument works", {
expect_equal(find_words("^[ab]", c("a", "b", "c"), neg = TRUE), c("c"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.