☰
Debian Codegraph
@
1.2.4+dfsg-1
1.2.3+dfsg-1
/
/
tests
/
testthat
/
test-errors.R
☽
☼
tests/testthat/test-errors.R
code
plain
raw
MIT
2000-2023 Posit Software, PBC
debian/copyright
1
2
test_that("tracebacks are captured by catch", {
3
skip_if(getRversion() < "3.3.0")
4
5
output <- catch(stop("ouch"))
6
traceback <- output$traceback
7
8
expect_true(is.character(traceback))
9
expect_true(length(traceback) > 0)
10
})