inst/tinytest/test_cscd.R

test_cscd <- function() {

expect_equal(cscd(30), 2)
expect_equal(cscd(1), 57.29869, tolerance = 1e-06)
expect_equal(cscd(45), 1.414214, tolerance = 1e-06)
expect_error(cscd("sq"))

  invisible(NULL)
}

test_cscd()

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.