tests/testthat/test-utils-nullish-op.R

test_that("%??% works", {
    expect_null(NULL %??% NULL)
    expect_identical(NULL %??% 1L, 1L)
    expect_identical(1L %??% NULL, 1L)
})

Try the transltr package in your browser

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

transltr documentation built on April 3, 2025, 9:33 p.m.