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:
parent
a7122331c5
commit
f1ad2104ad
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue