inst/fake.package/tests/testthat/test-my_mean.R

test_that("my_mean works", {
  expect_equal(my_mean(c(1, 6)), 3.5)
  expect_equal(my_mean(c(1, 6, NA)), 3.5)
})
ThinkR-open/testdown documentation built on April 17, 2023, 3:21 a.m.