tests/testthat/test-andEq.R

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)
})
craiggrabowski/filterr documentation built on May 28, 2019, 7:48 p.m.