summaryrefslogtreecommitdiff
path: root/tests/test_vba.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_vba.py')
-rw-r--r--tests/test_vba.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/test_vba.py b/tests/test_vba.py
index ec74a55..e9ff73c 100644
--- a/tests/test_vba.py
+++ b/tests/test_vba.py
@@ -142,5 +142,21 @@ class VbaTests(unittest.TestCase):
self.assertNotEqual(first_map_y, second_map_y)
+ def test_speedrunner_walk_into_new_bark_town(self):
+ runner = autoplayer.SpeedRunner(cry=None)
+ runner.setup()
+ runner.skip_intro(skip=True)
+ runner.handle_mom(skip=True)
+ runner.walk_into_new_bark_town(skip=False)
+
+ # test again if the game is in a state where the player can walk
+ first_map_y = self.get_wram_value("MapY")
+ runner.cry.move("d")
+ second_map_y = self.get_wram_value("MapY")
+
+ self.assertNotEqual(first_map_y, second_map_y)
+
+ # TODO: test the current map id against what it should be
+
if __name__ == "__main__":
unittest.main()