unit: Fixup crc unit test for zassert change

We renamed ztest's assert to zassert and the crc test case wasn't
updated to match so it doesn't build.

Change-Id: I67cd5bb6eef0875f31b8825d5c3aa5e1fa46af04
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2017-04-14 06:08:01 -05:00
commit 4ada031fb5

View file

@ -14,9 +14,9 @@ void test_crc16(void)
uint8_t test1[] = { 'A' };
uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' };
assert(crc16_ccitt(test0, sizeof(test0)) == 0x1d0f, "pass", "fail");
assert(crc16_ccitt(test1, sizeof(test1)) == 0x9479, "pass", "fail");
assert(crc16_ccitt(test2, sizeof(test2)) == 0xe5cc, "pass", "fail");
zassert(crc16_ccitt(test0, sizeof(test0)) == 0x1d0f, "pass", "fail");
zassert(crc16_ccitt(test1, sizeof(test1)) == 0x9479, "pass", "fail");
zassert(crc16_ccitt(test2, sizeof(test2)) == 0xe5cc, "pass", "fail");
}
void test_main(void *p1, void *p2, void *p3)