waldo
waldo copied to clipboard
Adding tolerance changes behaviour of `ignore_attr`
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)