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:
parent
0ac3a231f1
commit
4ada031fb5
1 changed files with 3 additions and 3 deletions
|
@ -14,9 +14,9 @@ void test_crc16(void)
|
||||||
uint8_t test1[] = { 'A' };
|
uint8_t test1[] = { 'A' };
|
||||||
uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' };
|
uint8_t test2[] = { '1', '2', '3', '4', '5', '6', '7', '8', '9' };
|
||||||
|
|
||||||
assert(crc16_ccitt(test0, sizeof(test0)) == 0x1d0f, "pass", "fail");
|
zassert(crc16_ccitt(test0, sizeof(test0)) == 0x1d0f, "pass", "fail");
|
||||||
assert(crc16_ccitt(test1, sizeof(test1)) == 0x9479, "pass", "fail");
|
zassert(crc16_ccitt(test1, sizeof(test1)) == 0x9479, "pass", "fail");
|
||||||
assert(crc16_ccitt(test2, sizeof(test2)) == 0xe5cc, "pass", "fail");
|
zassert(crc16_ccitt(test2, sizeof(test2)) == 0xe5cc, "pass", "fail");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_main(void *p1, void *p2, void *p3)
|
void test_main(void *p1, void *p2, void *p3)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue