sheredom / utest.h

🧪 single header unit testing framework for C and C++
The Unlicense
834 stars 57 forks source link

Add support for asserts with epsilon #91

Closed emoon closed 2 years ago

emoon commented 2 years ago

When testing if a float is the desired value it's often a good idea to include the test within a epsilon due to the nature of floating points so the value gets tested +/- within that range (such as 0.0001f)