tests/testthat/test-util.R

context("util")

test_that("or", {
  expect_null(NULL %||% NULL)
  expect_equal(1 %||% NULL, 1)
  expect_equal(NULL %||% 2, 2)
  expect_equal(1 %||% 2, 1)
})
HealthEconomicsHackathon/xlerate documentation built on Nov. 8, 2019, 12:33 a.m.