aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/tests
diff options
context:
space:
mode:
Diffstat (limited to 'Source/charon/tests')
-rw-r--r--Source/charon/tests/generator_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/charon/tests/generator_test.c b/Source/charon/tests/generator_test.c
index 2f6fa47f9..ac1dafcf2 100644
--- a/Source/charon/tests/generator_test.c
+++ b/Source/charon/tests/generator_test.c
@@ -84,7 +84,9 @@ void test_generator_with_header_payload(tester_t *tester)
0x00,0x00,0x00,0x07,
0x00,0x00,0x00,0x08,
};
-
+
+ tester->assert_true(tester,(generated_data.len == sizeof(expected_generation)), "compare generated data length");
+
tester->assert_true(tester,(memcmp(expected_generation,generated_data.ptr,sizeof(expected_generation)) == 0), "compare generated data");
allocator_free_chunk(generated_data);