diff --git a/cv9/snake.c b/cv9/snake.c index 901c298..c5bd055 100644 --- a/cv9/snake.c +++ b/cv9/snake.c @@ -36,7 +36,7 @@ void test_remove_snake_non_empty() { struct snake* new_head = remove_snake(head); - if (new_head != NULL && new_head->x == 2 && new_head->y == 2 && new_head->y == 2) { + if (new_head != NULL && new_head->x == 2 && new_head->y == 2) { printf("Test passed: new head coordinates are correct.\n"); } else { printf("Test failed: new head coordinates are incorrect.\n");