pacman/test/tests.cpp

15 lines
319 B
C++
Raw Normal View History

2020-11-27 16:48:38 +00:00
#include <gtest/gtest.h>
2020-11-29 18:17:23 +00:00
#include "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();
2020-11-29 18:28:42 +00:00
}