context("test atomic")
test_that("test atomic", {
expect_true(
match_with(1
, 1 -> TRUE
, . -> FALSE
)
)
expect_true(
match_with(1L
, 1 -> TRUE
, . -> FALSE
)
)
expect_true(
match_with(1
, 1L -> TRUE
, . -> FALSE
)
)
expect_true(
match_with("1"
, "1" -> TRUE
, . -> FALSE
)
)
expect_true(
match_with(NULL
, NULL -> TRUE
, . -> FALSE
)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.