tests/testthat/test_and.R

context("AND operator")
library(DeepOperators)

test_that("TRUE and TRUE is TRUE", {
  expect_true(TRUE %&% TRUE)
})

test_that("TRUE and FALSE is FALSE", {
  expect_false(TRUE %&% FALSE)
  expect_false(FALSE %&% TRUE)
})

test_that("FALSE and FALSE is FALSE", {
  expect_false(FALSE %&% FALSE)
})
ellisvalentiner/DeepOperators documentation built on Oct. 16, 2019, 5:56 p.m.