12345678910111213141516 |
- #include <catch2/catch_test_macros.hpp>
- #include <Snake/Position.hpp>
- TEST_CASE("Equality opearator test", "[Position]")
- {
- Position p1 = {0, 0};
- Position p2 = {0, 0};
- Position p3 = {1, 0};
- Position p4 = {0, 1};
- REQUIRE(p1 == p2);
- REQUIRE_FALSE(p2 == p3);
- REQUIRE_FALSE(p3 == p4);
- }
|