You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want to carefully check that an function yields an error with the expected class and capture the human readable message, you need something like this:
Could we turn this into a more concise assertion either by including the code in the output of expect_snapshot_error(), or if that's too disruptive to existing code, by adding a new expect_error_snapshot()?
The text was updated successfully, but these errors were encountered:
hadley
changed the title
How to expect error with given class _and_ capture message?
How to expect error with given class and capture message?
Sep 23, 2022
If you want to carefully check that an function yields an error with the expected class and capture the human readable message, you need something like this:
Could we turn this into a more concise assertion either by including the code in the output of
expect_snapshot_error()
, or if that's too disruptive to existing code, by adding a newexpect_error_snapshot()
?Related to #1471
The text was updated successfully, but these errors were encountered: