inst/extdata/example_project/tests/testthat/test-utility_functions_with_different_name.R

# utility function

test_that("example code prints correctly",
          {
            output <- utility_example()

            expect_equal(object = output,
                         expected = "example_utility_function")


          })

Try the assertHE package in your browser

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

assertHE documentation built on June 8, 2025, 10:08 a.m.