waldo icon indicating copy to clipboard operation
waldo copied to clipboard

Adding tolerance changes behaviour of `ignore_attr`

Open hadley opened this issue 2 years ago • 0 comments

waldo::compare(1, structure(1, class="a"), ignore_attr = "class", tolerance = 1e-6)
#> ✔ No differences
waldo::compare(1, structure(1, class="a"), ignore_attr = "class")
#> `old` is a double vector (1)
#> `new` is an S3 object of class <a>, a double vector
waldo::compare("x", structure("x", class="a"), ignore_attr = "class")
#> `old` is a character vector ('x')
#> `new` is an S3 object of class <a>, a character vector

Created on 2022-04-25 by the reprex package (v2.0.1)

hadley avatar Apr 25 '22 13:04 hadley