tests/testthat/test-pronoun.R

test_that("constructor", {
  x <- new_pronoun()

  expect_s3_class(x, "cascadess_style_pronoun")
})

test_that("print", {
  x <- new_pronoun()

  expect_output(print(x), "<pronoun>")
})

test_that("str", {
  x <- new_pronoun()

  expect_output(str(x), "<pronoun>")
})

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.