inst/examples/strings/tests/testthat/test-label.R

source(file.path("..", "..", "R", "label.R"))

test_that("greet returns a non-empty string", {
  expect_true(is.character(greet("Alice")))
  expect_true(nchar(greet("Alice")) > 0)
})

test_that("default_label returns a string", {
  expect_true(is.character(default_label("foo")))
})

Try the muttest package in your browser

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

muttest documentation built on May 14, 2026, 5:10 p.m.