silentbicycle / greatest

A C testing library in 1 file. No dependencies, no dynamic allocation. ISC licensed.
ISC License
1.48k stars 108 forks source link

Fix range handling of GREATEST_ASSERT_IN_RANGE. #109

Open breuderink opened 3 years ago

breuderink commented 3 years ago

Now ASSERT_IN_RANGE(1, NAN, 1e-6) properly fails. See issue #108 for details. Besides code review, is there anything that needs to be done to make sure that this change is correct?

silentbicycle commented 3 years ago

Good catch, PR looks good, and thanks for targeting this against develop. I will include this in the next release.