tests/testthat/test-funlogic.R

context("funlogic")

test_that("and", {
  
  expect_false((is.null %&% is.na)(NA))
  
})

test_that("or", {
  
  expect_true((is.null %|% is.na)(NA))
  
})

test_that("xor", {
  
  expect_true((is.null %xor% is.na)(NA))
  
})
ebeneditos/infix documentation built on Jan. 18, 2020, 10:37 p.m.