1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

tests: fix list unit tests

This commit is contained in:
Steffen Vogel 2017-06-17 03:47:10 +02:00
parent a7122331c5
commit f1ad2104ad

View file

@ -129,9 +129,9 @@ Test(list, basics)
list_push(&l, (void *) i);
}
cr_assert_eq(list_at(&l, 555), NULL);
cr_assert_eq(list_at_safe(&l, 555), NULL);
cr_assert_eq(list_last(&l), (void *) 99);
cr_assert_eq(list_first(&l), NULL);
cr_assert_eq(list_first(&l), (void *) 0);
for (size_t j = 0, i = 0; j < list_length(&l); j++) {
void *k = list_at(&l, j);