tests/testthat/test-golden_ratio.R

test_that("`golden_ratio()` works", {
  expect_equal(golden_ratio(10), 16.18034, tolerance = 0.01)
})

Try the see package in your browser

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

see documentation built on Nov. 3, 2023, 5:10 p.m.