Question: We learned that we need to use assertion 1 TEST _ ASSERT _ EQUAL _ INT 8 ( expected , actual ) if we want

We learned that we need to use assertion
1 TEST_ASSERT_EQUAL_INT8(expected, actual)
if we want to test if two int8_t numbers, the expected and actual values, are equal or not. The test passes if
they are equal.
What are the assertions we need to use for the following cases?
1. Testing if two uint16_t numbers are equal or not. The test passes if they are equal.
2. Testing if two int32_t numbers are equal or not. The test passes if they are equal.
3. Testing if the first 3 elements of two uint32_t arrays are equal element-wise or not. The test passes if
they are all equal

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!