pacman/test/tests.cpp

15 lines
306 B
C++
Raw Normal View History

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