library(filterr)
context("andEq")
test_that("andEq acts as logical-and", {
f <- function(x, y) {
z <- x
andEq(x, y)
expect_equal(x, z & y)
}
xx <- c(TRUE, FALSE, NA)
for (x in xx) for (y in xx) f(x, y)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.