Tests if 2 values are close to each other
Usage
test_isclose(..., tol = 1e-08)
Arguments
- ...
values to compare. At least two, and none of them empty:
comparing a zero-length or NULL value is an error rather than a pass,
because there is nothing to compare.
- tol
tolerance
Value
Logical or testthat output.
Examples
test_isclose(1,1.0000001, tol=1e-4)