Closed fujiapple852 closed 2 months ago
I will look for it, I think there is an approximately equal assert you can use instead.
I don't recall where I saw it. I thought it was std but can't find it. I guess I was mistaken. There are lots of options for float equality but I thought there was one in std, which I can't find. It's easy to find options but let me know if you want me to point out a few.
Thanks, it just needed:
(expected - actual).abs() < f64::EPSILON
IIRC that only works when the values being subtracted were close to 0 themselves as the EPSILON values changes but if it works here it's good enough until we need something more.
PS. I found what I was remembering it wasn't in std it was in insta.
Fix tests which fail on i386
https://buildd.debian.org/status/fetch.php?pkg=trippy&arch=i386&ver=0.11.0%2Bdfsg-1&stamp=1727294503&raw=0