waldo icon indicating copy to clipboard operation
waldo copied to clipboard

Uninformative comparison of complex with testthat tolerance

Open hadley opened this issue 1 year ago • 1 comments

x <- -0.068237827 - 0i
y <- -0.06823783  + 0i

waldo::compare(x, y, tolerance = testthat::testthat_tolerance())
#> Re(old) != Re(new) but don't know how to show the difference
waldo::compare(x, y)
#> `Re(old)`: -0.068237827
#> `Re(new)`: -0.068237830

Created on 2023-11-29 with reprex v2.0.2.9000

Possibly related to #141

hadley avatar Nov 29 '23 14:11 hadley