Skip to content

Commit

Permalink
another test
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGAzed committed Dec 31, 2024
1 parent a6eb0b5 commit 33152bf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/double_list/infinite_allocated_double_list_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,9 @@ TEST IADL_22(void) {
insert_at_double_list(&test, i, (DOUBLE_LIST_DATA_TYPE) { .sub_one = i });
}

size_t half = test.size / 2;
DOUBLE_LIST_DATA_TYPE element = remove_at_double_list(&test, half);
printf("%zu == %d is %d", half, element.sub_one, half == element.sub_one);
//ASSERT_EQm("[IADL-ERROR] Expected middle element to be list size divided by 2", test.size / 2, remove_at_double_list(&test, test.size / 2).sub_one);
const size_t half = test.size / 2;
const DOUBLE_LIST_DATA_TYPE element = remove_at_double_list(&test, half);
ASSERT_EQm("[IADL-ERROR] Expected middle element to be list size divided by 2", half, element.sub_one);

destroy_double_list(&test, NULL);

Expand Down

0 comments on commit 33152bf

Please sign in to comment.