tests/testthat/test-nin.R

context("nin")

test_that("'nin' is the negation of 'in'", {
  x <- 1:10 %nin% c(1,3,5,9)
  y <- 1:10 %in% c(1,3,5,9)
  expect_identical(x, !y)
})

Try the bazar package in your browser

Any scripts or data that you put into this service are public.

bazar documentation built on May 2, 2019, 7:02 a.m.