pacman/pacman/test/tests.cpp

14 lines
325 B
C++
Raw Normal View History

2020-11-27 16:48:38 +00:00
#include <gtest/gtest.h>
#include "../lib/PacMan.hpp"
2020-11-27 16:48:38 +00:00
2020-11-27 17:21:19 +00:00
TEST(PacManTest, InitialPosition) {
Board board;
PacMan pacMan(board);
2020-11-27 17:21:19 +00:00
EXPECT_EQ(pacMan.currentPosition().x, 14);
EXPECT_EQ(pacMan.currentPosition().y, 23);
2020-11-27 17:03:20 +00:00
}
2020-11-27 16:48:38 +00:00
int main(int argc, char* argv[]) {
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}