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:
Olaf Bergmann committed 2016-12-01 17:11:11 +01:00
1 parent beeb6b62d4
commit 731a3f7cbb
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}