summaryrefslogtreecommitdiff
path: root/tests/test_vba.py
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-10-12 16:41:50 -0500
committerBryan Bishop <kanzure@gmail.com>2013-10-12 16:41:50 -0500
commit5fdd27030e0268b6fa494b9219d3a1ac8c2a35cb (patch)
tree13ed2cc8bbe21e2f7469ef9d14cd48205080336c /tests/test_vba.py
parente13cdeab1104260e2dcfd04aa9dbaa5688f357d0 (diff)
move() can now take a list of movements to make
Diffstat (limited to 'tests/test_vba.py')
-rw-r--r--tests/test_vba.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/test_vba.py b/tests/test_vba.py
index f8bdaa6..b68e24b 100644
--- a/tests/test_vba.py
+++ b/tests/test_vba.py
@@ -223,6 +223,29 @@ class VbaTests(unittest.TestCase):
self.assertEqual(self.get_wram_value("MapGroup"), 24)
self.assertEqual(self.get_wram_value("MapNumber"), 4)
+ def test_crystal_move_list(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)
+
+ # must be in New Bark Town
+ self.assertEqual(self.get_wram_value("MapGroup"), 24)
+ self.assertEqual(self.get_wram_value("MapNumber"), 4)
+
+ first_map_x = self.get_wram_value("MapX")
+
+ runner.cry.move(["l", "l", "l"])
+
+ # x location should be different
+ second_map_x = self.get_wram_value("MapX")
+ self.assertNotEqual(first_map_x, second_map_x)
+
+ # must still be in New Bark Town
+ self.assertEqual(self.get_wram_value("MapGroup"), 24)
+ self.assertEqual(self.get_wram_value("MapNumber"), 4)
+
def test_keyboard_typing_dumb_name(self):
self.bootstrap_name_prompt()