assert icon indicating copy to clipboard operation
assert copied to clipboard

Assert::greaterThanEq and Assert::lessThanEq don't work for NAN

Open johanvio opened this issue 1 year ago • 0 comments
trafficstars

Hi,

I think I just found a bug in your assertion library

$a = NAN; // not-a-number
Assert::greaterThanEq($a, 0);  // does not throw, while it should
Assert::lessThanEq($a, 0); // does not throw, while it should

eq seems to work fine with NAN:

$a = NAN;
Assert::eq($a, $a); // throws, which is fine

Thank you for your nice assertion library; I've been using it for years, and I like it very much!

johanvio avatar Aug 30 '24 12:08 johanvio