1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 00:15:58 +01:00

Add LESS_OR_EQUAL and GREATER_OR_EQUAL assertions for doubles and floats

This commit is contained in:
Jonathan Reichelt Gjertsen
2021-12-03 20:38:09 +01:00
parent 2a8f3fe65a
commit b732fbf1ca
7 changed files with 471 additions and 0 deletions

View File

@@ -168,6 +168,10 @@ Asserts that two floating point values are NOT "equal" within a small % delta of
Asserts that the actual value is less than or greater than the threshold.
There are also `LESS_OR_EQUAL` and `GREATER_OR_EQUAL` variations.
These obey the same rules for equality as do `TEST_ASSERT_EQUAL_FLOAT` and `TEST_ASSERT_EQUAL_DOUBLE`:
If the two values are within a small % delta of the expected value, the assertion will pass.
### String Assertions
TEST_ASSERT_EQUAL_STRING(expected, actual)