context("nlist")
test_that("nlist returns a namedList object", {
foo <- nlist(a=1, b=2)
expect_is(foo, "namedList")
expect_equal(names(foo), c("a", "b"))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.