From 63ab384440a6e6813196b914813914bc43674fa8 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Fri, 12 Jun 2015 16:30:29 +0200 Subject: Added new tests --- test/move_string_mapper.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 test/move_string_mapper.cpp (limited to 'test/move_string_mapper.cpp') 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 +#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"); + } + } + + } +} -- cgit v1.2.3