tests/test_null_coalesce.R

source("helper/helper.R")

expect_identical(NULL %||% TRUE, TRUE)
expect_identical(FALSE %||% NULL, FALSE)
expect_identical(FALSE %||% TRUE, FALSE)

Try the backports package in your browser

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

backports documentation built on June 24, 2024, 5:24 p.m.