tests/testthat/test-utils.R

test_that("named_match()", {
  expect_null(named_match("one", NULL))
})

test_that("assert_values()", {
  expect_error(assert_values(c(), c(one = 1, two = 2)))
})

test_that("pronoun_box_add_class()", {
  expect_error(
    pronoun_box_add_class(splice(2), "two-class"),
    "unexpected pronoun box contents"
  )
})

Try the cascadess package in your browser

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

cascadess documentation built on Oct. 30, 2024, 9:29 a.m.