blob: ab167e31ac059a9362c13127fd28de0aad2ded54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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");
}
}
}
}
|