tests/testthat/test-op-nullish.R

test_that("it works", {
    expect_null(NULL %||% NULL)
    expect_identical(NULL %||% 2L, 2L)
    expect_identical(1L %||% 2L,   1L)
})
jeanmathieupotvin/dotprofile documentation built on Dec. 20, 2021, 10:08 p.m.