tests/testthat/test-demo_fun.R

# demo_fun ----

## Test 1: returns 42 ----
test_that("demo_fun Test 1: returns 42", {
  expect_equal(demo_fun("life", "the universe", "everything"), 42)
})

Try the admiraldev package in your browser

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

admiraldev documentation built on Jan. 14, 2026, 9:09 a.m.