Skip to content

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

Description

@johanvio

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions