mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 00:15:58 +01:00
Add assertion for checking empty null-terminated arrays. This is particularly useful for check c strings.
This commit is contained in:
@@ -236,6 +236,15 @@ conditional statements.
|
||||
|
||||
##### `TEST_ASSERT_NOT_NULL (pointer)`
|
||||
|
||||
Verify if a pointer is or is not NULL.
|
||||
|
||||
##### `TEST_ASSERT_EMPTY (pointer)`
|
||||
|
||||
##### `TEST_ASSERT_NOT_EMPTY (pointer)`
|
||||
|
||||
Verify if the first element dereferenced from a pointer is or is not zero. This
|
||||
is particularly useful for checking for empty (or non-empty) null-terminated
|
||||
C strings, but can be just as easily used for other null-terminated arrays.
|
||||
|
||||
### Signed and Unsigned Integers (of all sizes)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user