File: test_gh_issue_86.R

package info (click to toggle)
r-cran-tinytest 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,072 kB
  • sloc: sh: 14; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 315 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# test the ... argument
expect_error(stop("chocolate foo(bar)"), pattern="foo(", fixed=TRUE)

expect_warning(warning("chocolate foo(bar)"), pattern="foo(", fixed=TRUE)

expect_message(message("chocolate foo(bar)"), pattern="foo(", fixed=TRUE)


expect_stdout(cat("chocolate foo(bar)"), pattern="foo(", fixed=TRUE)