Skip to content

Commit

Permalink
SList complete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-courtis committed Jun 27, 2023
1 parent 56cb3d9 commit 0193ad1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tst/tst-slist.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,14 @@ bool false_test(const void *data) {
}

bool before_int(const void *a, const void *b) {
if (!a && !b)
return false;
if (a && b)
return (*(int*)a < *(int*)b);
else if (a && !b)
return true;
else if (!a && b)
return false;
else {
return (*(int*)a < *(int*)b);
}
else
return false;
}

bool predicate_strstr(const void *val, const void *data) {
Expand Down

0 comments on commit 0193ad1

Please sign in to comment.