Skip to content

Commit

Permalink
fix test for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
rask24 committed Feb 9, 2024
1 parent 2d35ab9 commit ebedfbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_set_cost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ TEST(set_selection_cost, selection) {
t_stack *stack_a = NULL;
t_stack *stack_b = NULL;
for (int i = 0; i < N; ++i) {
t_content *c = new t_content({i, 0, 0, 0, 0});
t_content *c = new t_content({i, 0, 0, 0, 0, 0, INIT, false});
ft_lstadd_back(&stack_a, ft_lstnew(c));
ft_lstadd_back(&stack_b, ft_lstnew(c));
}
Expand All @@ -48,7 +48,7 @@ TEST(set_insertion_cost, insertion1) {
t_stack *stack_a = NULL;
t_stack *stack_b = NULL;
for (int i = 0; i < 2 * N; ++i) {
t_content *c = new t_content({i, 0, 0, 0, 0});
t_content *c = new t_content({i, 0, 0, 0, 0, 0, INIT, false});
if (i % 2 == 0)
ft_lstadd_back(&stack_a, ft_lstnew(c));
else
Expand Down Expand Up @@ -93,11 +93,11 @@ TEST(set_insertion_cost, insertion2) {
t_stack *stack_a = NULL;
t_stack *stack_b = NULL;
for (int &i : v_a) {
t_content *c = new t_content({i, 0, 0, 0, 0});
t_content *c = new t_content({i, 0, 0, 0, 0, 0, INIT, false});
ft_lstadd_back(&stack_a, ft_lstnew(c));
}
for (int &i : v_b) {
t_content *c = new t_content({i, 0, 0, 0, 0});
t_content *c = new t_content({i, 0, 0, 0, 0, 0, INIT, false});
ft_lstadd_back(&stack_b, ft_lstnew(c));
}

Expand Down

0 comments on commit ebedfbd

Please sign in to comment.