waldo
waldo copied to clipboard
Uninformative comparison of complex with testthat tolerance
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