throwsError: Returns a function that checks whether its _argument_ throws...

Description Usage See Also Examples

View source: R/hamcrest.R

Description

Returns a function that checks whether its argument throws (any) error

Usage

1

See Also

Examples

1
2
3
4
## Not run: 
assertThat(log("a"), throwsError())

## End(Not run)

bedatadriven/hamcrest documentation built on Dec. 1, 2019, 1:49 p.m.