tests/testthat/_snaps/expect-condition.md

regexp = NULL checks for presence of error

`null()` did not throw the expected error.

regexp = string matches for error message

"OK" did not throw the expected error.

message method is called when expecting error

`fb()` threw an unexpected error.
Message: dispatched!
Class:   foobar/rlang_error/error/condition


Try the testthat package in your browser

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

testthat documentation built on Jan. 21, 2022, 1:10 a.m.