pacman/test/tests.cpp

15 lines
324 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) {
2021-07-05 12:10:01 +00:00
pacman::Board board;
pacman::PacMan pacMan(board);
2021-07-02 12:47:52 +00:00
EXPECT_EQ(pacMan.position().x, 13.5);
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
}