2020-11-27 16:48:38 +00:00
|
|
|
#include <gtest/gtest.h>
|
2020-11-27 17:21:19 +00:00
|
|
|
#include "../lib/PacMan.h"
|
2020-11-27 16:48:38 +00:00
|
|
|
|
2020-11-27 17:21:19 +00:00
|
|
|
TEST(PacManTest, InitialPosition) {
|
|
|
|
PacMan pacMan;
|
|
|
|
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();
|
|
|
|
}
|