Description Usage Arguments See Also Examples
Returns a function that checks whether its argument is equal to an expected result
1 | equalTo(expected)
|
expected |
object passed to the matcher function. |
identicalTo
closeTo
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.