context("ammoc")
test_that("returns first arg, discards rest", local({
y <- "hello"
res <- ammoc(x <- y, rm(y))
expect_false(exists("y", inherits=FALSE))
expect_equal(x, "hello")
expect_equal(res, "hello")
}))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.