inst/tinytest/test_secd.R

test_secd <- function() {

expect_equal(secd(360), 1)
expect_equal(secd(180), -1)
expect_equal(secd(0), 1)
expect_error(secd("sq"))

  invisible(NULL)
}

test_secd()

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.