Skip to content

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

Open
@johanvio

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions