diff options
Diffstat (limited to 'tests/list.c')
-rw-r--r-- | tests/list.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/list.c b/tests/list.c index 5d0403f..1d70f33 100644 --- a/tests/list.c +++ b/tests/list.c @@ -96,4 +96,7 @@ void check_list(void) { SLIST_APPEND(&l2, &i12); SLIST_SPLICE(&l1, &l1.head->next, &l2); bfs_verify(check_list_items(&l1, ARRAY(10, 11, 12, 15, 20))); + + // Check the return type of SLIST_POP() + bfs_check(SLIST_POP(&l1)->n == 10); } |