context("base_count")
test_that("base_count works as expected", {
expect_equal(
base_count(c("A", "AC")),
c(1, 2)
)
expect_equal(
base_count(c("A", "AC"), c("A", "T")),
c(1, 3)
)
expect_equal(
base_count(c("A", "AC"), c("C", "C")),
c(2, 2)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.