aboutsummaryrefslogtreecommitdiff
path: root/tests/lltests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lltests.c')
-rw-r--r--tests/lltests.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lltests.c b/tests/lltests.c
index 265a276..212178c 100644
--- a/tests/lltests.c
+++ b/tests/lltests.c
@@ -17,14 +17,16 @@ TestSuite(lltest, .init=setup, .fini=teardown);
Test(lltest, llnode) {
int val = 17;
head = llnode(val);
- cr_expect(head != NULL && head->value == val);
+ cr_expect(head != NULL);
+ cr_expect(head->value == val);
}
// Push
Test(lltest,llpush) {
int val = 12;
llpush(&head,val);
- cr_expect(head->next->value == val);
+ cr_expect(head->next != NULL);
+ cr_expect(head->value == val);
}
// Pop