test: Cover all array_output_serializer functions
This commit is contained in:
parent
c289efd84a
commit
73ac512cab
1 changed files with 4 additions and 0 deletions
|
|
@ -20,6 +20,10 @@ static void serialize_test(void **state)
|
|||
assert_int_equal(output.bytes.num, 3);
|
||||
uint8_t expected[3] = {0x01, 0xff, 0xe1};
|
||||
assert_memory_equal(output.bytes.array, expected, 3);
|
||||
|
||||
assert_true(serializer_get_pos(&s) == 3);
|
||||
|
||||
array_output_serializer_free(&output);
|
||||
}
|
||||
|
||||
int main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue