diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-08-04 14:16:44 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-08-04 14:16:44 -0500 |
commit | 4aacc3bf3e1316363fcd26091e997cf218a4e26b (patch) | |
tree | 14f723659b672c6e3b0c64fc9cfe08b400c58389 /tests/integration/tests.py | |
parent | 782f6fee10430464416ba8904fd7c6c7ea302779 (diff) |
move TestEncodedText into tests/integration/
Diffstat (limited to 'tests/integration/tests.py')
-rw-r--r-- | tests/integration/tests.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/integration/tests.py b/tests/integration/tests.py index 26f99d7..ac7da3e 100644 --- a/tests/integration/tests.py +++ b/tests/integration/tests.py @@ -215,5 +215,25 @@ class TestAsmList(unittest.TestCase): self.assertIn("AddNTimes", label_names) self.assertIn("CheckShininess", label_names) +class TestEncodedText(unittest.TestCase): + """for testing chars-table encoded text chunks""" + + def test_process_00_subcommands(self): + g = process_00_subcommands(0x197186, 0x197186+601, debug=False) + self.assertEqual(len(g), 42) + self.assertEqual(len(g[0]), 13) + self.assertEqual(g[1], [184, 174, 180, 211, 164, 127, 20, 231, 81]) + + def test_parse_text_at2(self): + oakspeech = parse_text_at2(0x197186, 601, debug=False) + 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.commands), 2) + self.assertEqual(len(p.commands[0]["lines"]), 41) + if __name__ == "__main__": unittest.main() |