context("lookup")
testthat::test_that("lookup returns the right vector",{
# testthat::expect_identical(
# look_up(1:3,data.frame(var=5,return="one")),
# expected = c("integer(0)","integer(0)","integer(0)")
# )
testthat::expect_equal(
look_up(1:3,tibble(var=5,return="one")),
expected = c(1,2,3)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.