tests/testthat/test-OR.R

test_that("%||%", {
  x <- NULL %||% 2 %||% 1
  expect_equal(x, 2)

})

Try the webmorphR package in your browser

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

webmorphR documentation built on June 2, 2022, 5:07 p.m.