tests/testthat/projects/test_calculation_pi/test/calculations/pi.R

test_that("the calculation is close to pi", {
  # Note we have access to the testthat package.
  expect_lt(abs(resource() - 3.1415926), 1e-3)
})
robertzk/syberia documentation built on May 27, 2019, 11:37 a.m.