mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-21 14:59:06 +03:00
test_pdu.c: fix condition inside CUnit assertion
The test condition accidentally contained an assignment instead of the equal operator.
This commit is contained in:
1 parent
beeb6b62d4
commit
731a3f7cbb
1 file changed
+1
-1
+1
-1
@@ -264,7 +264,7 @@ t_encode_pdu1(void) {
|
||||
result = coap_add_token(pdu, 5, (unsigned char *)"token");
|
||||
|
||||
CU_ASSERT(result == 1);
|
||||
CU_ASSERT(pdu->length = sizeof(teststr));
|
||||
CU_ASSERT(pdu->length == sizeof(teststr));
|
||||
CU_ASSERT_PTR_NULL(pdu->data);
|
||||
CU_ASSERT(memcmp(pdu->hdr, teststr, sizeof(teststr)) == 0);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user