tests/testthat/test-throw.R

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

Try the rasciidoc package in your browser

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

rasciidoc documentation built on Aug. 16, 2023, 1:09 a.m.