equalTo: Returns a function that checks whether its _argument_ is...

Description Usage Arguments See Also Examples

View source: R/hamcrest.R

Description

Returns a function that checks whether its argument is equal to an expected result

Usage

1
equalTo(expected)

Arguments

expected

object passed to the matcher function.

See Also

Examples

1
2
3
4
5
## Not run: 
assertThat(qnorm(0, 0, 1, TRUE, FALSE), equalTo(-Inf))
assertThat(length(rnorm(10)), equalTo(10))

## End(Not run)

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