shithub: pokecrystal

Download patch

ref: a4b19fe60ad2044ec1eb3f51e912782dd25adba9
parent: 12fc29529a82b47db5d039c59f104fccdb6901f3
author: Bryan Bishop <[email protected]>
date: Sat Mar 24 21:43:42 EDT 2012

test_parse_text_engine_script_at

--- a/extras/crystal.py
+++ b/extras/crystal.py
@@ -5369,6 +5369,10 @@
         self.assertIn("encyclopedia", oakspeech)
         self.assertIn("researcher", oakspeech)
         self.assertIn("dependable", oakspeech)
+    def test_parse_text_engine_script_at(self):
+        p = parse_text_engine_script_at(0x197185, debug=False)
+        self.assertEqual(len(p), 2)
+        self.assertEqual(len(p[0]["lines"]), 41)
     #don't really care about these other two
     def test_parse_text_from_bytes(self): pass
     def test_parse_text_at(self): pass