inst/tinytest/test_acotd.R

test_acotd <- function() {

expect_equal(acotd(270), 0.2122056, tolerance = 1e-06)
expect_equal(acotd(45), 1.27303, tolerance = 1e-06)
expect_equal(acotd(30), 1.909152, tolerance = 1e-06)
expect_equal(acotd(1), 45)
expect_error(acotd(0))
expect_error(acotd("sq"))

  invisible(NULL)
}

test_acotd()

Try the iemisc package in your browser

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

iemisc documentation built on Sept. 25, 2023, 5:09 p.m.