tests/testthat/test-throw.R

testthat::test_that("throw the fritools2 exception", {
                        error_message <- "hello, testthat"
                        string <- "hello, testthat"
                        testthat::expect_error(fritools2:::throw(string),
                            error_message)
}
)

Try the fritools2 package in your browser

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

fritools2 documentation built on July 9, 2023, 7:07 p.m.