inst/tinytest/test_f1.R

test_f1 <- function() {

expect_equal(f1(2000), 0.032)
expect_equal(f1(0.00001), 6400000)
expect_error(f1("sq"))
expect_error(f1(2500))

  invisible(NULL)
}

test_f1()

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.