Skip to content

Commit

Permalink
test longest mnemonic
Browse files Browse the repository at this point in the history
  • Loading branch information
gdabah committed May 27, 2020
1 parent c4efa92 commit 5de5c77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/test_distorm3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,9 @@ def test_binary(self):
insts = IB64(data).insts
output = "".join([_hexlify(i.instructionBytes) for i in insts])
self.assertTrue(data == output)
def test_longest_mnemonic(self):
# The longest mnemonic is VAESKEYGENASSIST and check it's null terminated.
self.assertEqual(I32("VAESKEYGENASSIST xmm1, xmm2, 7").inst.mnemonic, "VAESKEYGENASSIST")

class TestPrefixes(unittest.TestCase):
Derefs16 = ["BX + SI", "BX + DI", "BP + SI", "BP + DI", "SI", "DI", "BP", "BX"]
Expand Down

0 comments on commit 5de5c77

Please sign in to comment.