inst/example_packages/exampleGood/tests/testthat/test-hypotenuse.R

test_that("hypotenuse is calculated correctly", {
  expect_equal(hypotenuse(3, 4), 5)
})

Try the checked package in your browser

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

checked documentation built on June 10, 2025, 9:08 a.m.