Revision 3042
Date2026-05-19T16:27:14+02:00
Committercu1017
Download
| #include "./Snake.h"
#include <gtest/gtest.h>
TEST(Snake, initGame) {
Snake snake;
snake.initGame();
// The head of the snake points right in the first step.
ASSERT_EQ(snake.dirRow_, 0);
ASSERT_EQ(snake.dirCol_, 1);
}
|