k
This commit is contained in:
parent
f1eb22c901
commit
1729a2da7d
@ -36,7 +36,7 @@ void test_remove_snake_non_empty() {
|
|||||||
struct snake* new_head = remove_snake(head);
|
struct snake* new_head = remove_snake(head);
|
||||||
|
|
||||||
|
|
||||||
if (new_head != NULL && new_head->x == 3) {
|
if (new_head != NULL && new_head->x == 2 && new_head->y == 2 && new_head->y == 2) {
|
||||||
printf("Test passed: new head coordinates are correct.\n");
|
printf("Test passed: new head coordinates are correct.\n");
|
||||||
} else {
|
} else {
|
||||||
printf("Test failed: new head coordinates are incorrect.\n");
|
printf("Test failed: new head coordinates are incorrect.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user