From 7d3994ae753d3fa208401afbab6678328d6ecc8e Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 22 Sep 2013 02:33:02 -0500 Subject: test that the current map is correct --- tests/test_vba.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_vba.py b/tests/test_vba.py index 5098a7d..9f7b8f1 100644 --- a/tests/test_vba.py +++ b/tests/test_vba.py @@ -162,9 +162,12 @@ class VbaTests(unittest.TestCase): runner.cry.move("d") second_map_y = self.get_wram_value("MapY") + # check that the player has moved self.assertNotEqual(first_map_y, second_map_y) - # TODO: test the current map id against what it should be + # check that the map is correct + self.assertEqual(self.get_wram_value("MapGroup"), 24) + self.assertEqual(self.get_wram_value("MapNumber"), 4) if __name__ == "__main__": unittest.main() -- cgit v1.2.3