diff options
Diffstat (limited to 'test/direction.cpp')
-rw-r--r-- | test/direction.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/direction.cpp b/test/direction.cpp new file mode 100644 index 0000000..8c36a94 --- /dev/null +++ b/test/direction.cpp @@ -0,0 +1,11 @@ +#include <gtest/gtest.h> + +#include "backend/Location.h" + +TEST(LocationDirection, Negate) { + ASSERT_EQ(-NORTH, SOUTH); + ASSERT_EQ(-EAST, WEST); + ASSERT_EQ(-SOUTH, NORTH); + ASSERT_EQ(-WEST, EAST); +} + |