summaryrefslogtreecommitdiff
path: root/test/move_string_mapper.cpp
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-10-17 17:02:24 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-10-17 17:02:24 +0200
commit550caeee11086bd56db69176b3149ddfa160ee30 (patch)
treec935b819a4ad165fbef567db67ad9ddcca62df04 /test/move_string_mapper.cpp
parent31a82b0359515ae579514024b22873fb708c3f53 (diff)
Reverted to a simple decision tree
Turns out it's much easier to write a bot by hand with if statements.
Diffstat (limited to 'test/move_string_mapper.cpp')
-rw-r--r--test/move_string_mapper.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/move_string_mapper.cpp b/test/move_string_mapper.cpp
index ab167e3..a7af36a 100644
--- a/test/move_string_mapper.cpp
+++ b/test/move_string_mapper.cpp
@@ -20,4 +20,19 @@ SCENARIO("Writing a move")
}
}
+
+ GIVEN("Build missle controller move")
+ {
+ Move move = Move::BUILD_MISSILE_CONTROLLER;
+
+ WHEN("It is mapped to a string")
+ {
+ std::string moveString = MoveStringMapper().toString(move);
+
+ THEN("The string is correct")
+ {
+ REQUIRE(moveString == "BuildMissileController");
+ }
+ }
+ }
}