pacman/test/tests.cpp
2021-06-10 14:26:03 +02:00

14 lines
305 B
C++

#include <gtest/gtest.h>
#include "PacMan.hpp"
TEST(PacManTest, InitialPosition) {
Board board;
PacMan pacMan(board);
EXPECT_EQ(pacMan.position().x, 14);
EXPECT_EQ(pacMan.position().y, 23);
}
int main(int argc, char* argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}