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-07 09:40:23 +00:00
|
|
|
pacman::PacMan pacMan;
|
2021-07-02 12:47:52 +00:00
|
|
|
EXPECT_EQ(pacMan.position().x, 13.5);
|
2021-06-10 12:26:03 +00:00
|
|
|
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
|
|
|
}
|