mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Merge pull request #644 from AJIOB/implement_array_within_check
Adding within API support for float & double arrays
This commit is contained in:
@@ -572,10 +572,16 @@ code generation conventions for CMock.
|
||||
Asserts that the `actual` value is NOT "close enough to be considered equal" to the
|
||||
`expected` value.
|
||||
|
||||
#### `TEST_ASSERT_FLOAT_ARRAY_WITHIN (delta, expected, actual, num_elements)`
|
||||
|
||||
See Array assertion section for details. Note that individual array element
|
||||
uses user-provided delta plus default comparison delta for checking
|
||||
and is based on `TEST_ASSERT_FLOAT_WITHIN` comparison.
|
||||
|
||||
#### `TEST_ASSERT_EQUAL_FLOAT_ARRAY (expected, actual, num_elements)`
|
||||
|
||||
See Array assertion section for details. Note that individual array element
|
||||
float comparisons are executed using `TEST_ASSERT_EQUAL_FLOAT`.That is, user
|
||||
float comparisons are executed using `TEST_ASSERT_EQUAL_FLOAT`. That is, user
|
||||
specified delta comparison values requires a custom-implemented floating point
|
||||
array assertion.
|
||||
|
||||
@@ -667,10 +673,16 @@ code generation conventions for CMock.
|
||||
Asserts that the `actual` value is NOT "close enough to be considered equal" to the
|
||||
`expected` value.
|
||||
|
||||
#### `TEST_ASSERT_DOUBLE_ARRAY_WITHIN (delta, expected, actual, num_elements)`
|
||||
|
||||
See Array assertion section for details. Note that individual array element
|
||||
uses user-provided delta plus default comparison delta for checking
|
||||
and is based on `TEST_ASSERT_DOUBLE_WITHIN` comparison.
|
||||
|
||||
#### `TEST_ASSERT_EQUAL_DOUBLE_ARRAY (expected, actual, num_elements)`
|
||||
|
||||
See Array assertion section for details. Note that individual array element
|
||||
double comparisons are executed using `TEST_ASSERT_EQUAL_DOUBLE`.That is, user
|
||||
double comparisons are executed using `TEST_ASSERT_EQUAL_DOUBLE`. That is, user
|
||||
specified delta comparison values requires a custom implemented double array
|
||||
assertion.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user