calculate_hit <- function(r, expected, eps = 1e-6){
hit(r) -expected <= eps
}
test_that("value works", {
expect_true(calculate_hit(r = 0,0))
})
test_that("value works", {
expect_true(calculate_hit(r = 1,.5))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.