diff options
Diffstat (limited to 'test/move_string_mapper.cpp')
-rw-r--r-- | test/move_string_mapper.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/move_string_mapper.cpp b/test/move_string_mapper.cpp new file mode 100644 index 0000000..ab167e3 --- /dev/null +++ b/test/move_string_mapper.cpp @@ -0,0 +1,23 @@ +#include "catch.hpp" +#include "move.h" +#include <string> +#include "move_string_mapper.h" + +SCENARIO("Writing a move") +{ + GIVEN("A Move") + { + Move move = Move::MOVE_LEFT; + + WHEN("It is mapped to a string") + { + std::string moveString = MoveStringMapper().toString(move); + + THEN("The string is correct") + { + REQUIRE(moveString == "MoveLeft"); + } + } + + } +} |