summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-08-12 23:18:56 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-08-12 23:18:56 +0200
commit1da1c8d213ce710a9cafdd560d0d3d3c7fb74d70 (patch)
tree3ec371e909af1bda730b6325a40fbb74ac844806 /test
parent1049b6acb37c244ef7470b2e7fe4145a616d3df3 (diff)
Changing how gamestate is interpreted into network
Diffstat (limited to 'test')
-rw-r--r--test/game_state.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/game_state.cpp b/test/game_state.cpp
index 467a665..a9975f2 100644
--- a/test/game_state.cpp
+++ b/test/game_state.cpp
@@ -82,8 +82,8 @@ SCENARIO("game state is read from istream")
THEN("the spaceships are read correctly")
{
- auto spaceships = state.spaceships();
- REQUIRE(spaceships.size() == 2);
+ REQUIRE(state.playerSpaceship()->x() == 9);
+ REQUIRE(state.playerSpaceship()->y() == 22);
}
}
}