2021-09-06 13:54:19 +00:00
|
|
|
#include "PacMan.hpp"
|
2021-09-11 08:09:59 +00:00
|
|
|
#include <catch2/catch.hpp>
|
2021-09-06 13:54:19 +00:00
|
|
|
|
2021-09-11 08:09:59 +00:00
|
|
|
TEST_CASE("Pacman has the correct initial position") {
|
2021-09-06 13:54:19 +00:00
|
|
|
pacman::PacMan pacMan;
|
2021-09-11 08:09:59 +00:00
|
|
|
REQUIRE(pacMan.position().x == 13.5);
|
|
|
|
REQUIRE(pacMan.position().y == 23);
|
2021-09-06 13:54:19 +00:00
|
|
|
}
|