Debian Codegraph @

tests/testthat/test-errors.R

raw
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 })