81 assert_true(data->
pis.
id == 1);
93 assert(data->
pis.
id == 1);
107 assert_true(data->
pis.
id == 1);
120 assert(data->
pis.
id == 1);
151 assert(data->
pis.
id == 1);
220 assert_int_equal(mru_ack.
len, 3);
221 assert_int_equal(mru_ack.
packet_id[0], 2);
222 assert_int_equal(mru_ack.
packet_id[1], 1);
223 assert_int_equal(mru_ack.
packet_id[2], 3);
227 assert_int_equal(mru_ack.
len, 3);
228 assert_int_equal(mru_ack.
packet_id[0], 2);
229 assert_int_equal(mru_ack.
packet_id[1], 1);
230 assert_int_equal(mru_ack.
packet_id[2], 3);
236 assert_int_equal(mru_ack2.
packet_id[0], 2);
237 assert_int_equal(mru_ack2.
packet_id[1], 1);
238 assert_int_equal(mru_ack2.
packet_id[2], 3);
244 assert_int_equal(mru_ack2.
packet_id[0], 3);
245 assert_int_equal(mru_ack2.
packet_id[1], 2);
246 assert_int_equal(mru_ack2.
packet_id[2], 1);
251 assert_int_equal(mru_ack.
len, 3);
252 assert_int_equal(mru_ack.
packet_id[0], 2);
253 assert_int_equal(mru_ack.
packet_id[1], 1);
254 assert_int_equal(mru_ack.
packet_id[2], 3);
258 assert_int_equal(mru_ack.
len, 3);
259 assert_int_equal(mru_ack.
packet_id[0], 2);
260 assert_int_equal(mru_ack.
packet_id[1], 1);
261 assert_int_equal(mru_ack.
packet_id[2], 3);
263 struct reliable_ack ack3 = { .
len = 7, .packet_id = {5, 6, 7, 8, 9, 10, 11}};
268 struct reliable_ack expected_ack = { .
len = 8, .packet_id = {5, 6, 7, 8, 9, 10, 11, 2}};
269 assert_int_equal(mru_ack.
len, expected_ack.
len);
278 const struct CMUnitTest tests[] = {
302 return cmocka_run_group_tests_name(
"packet_id tests", tests, NULL, NULL);