File: test_is_error.R

package info (click to toggle)
r-cran-bbmisc 1.7-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,156 kB
  • ctags: 13
  • sloc: ansic: 152; sh: 9; makefile: 3
file content (6 lines) | stat: -rw-r--r-- 140 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
context("is.error")

test_that("is.error", {
 expect_true(is.error(try(stop("foo"), silent=TRUE)))
 expect_false(is.error(try("foo")))
})