Skip to content
Snippets Groups Projects
Commit ed54472c authored by Nguyen Anh Quynh's avatar Nguyen Anh Quynh Committed by GitHub
Browse files

Merge pull request #262 from evil-e/patch-1

Update x86_issue10.py
parents 1c95fb5e b4b60879
No related branches found
No related tags found
Loading
......@@ -16,9 +16,11 @@ class TestX86(regress.RegressTest):
# Assemble to get back insn encoding & statement count
encoding1, _ = ks.asm(b"push 0xd")
encoding2, _ = ks.asm(b"push word 0xd")
encoding3, _ = ks.asm(b"push word 0x1234")
# Assert the result
self.assertEqual(encoding1, [ 0x6a, 0x0d ])
self.assertEqual(encoding2, [ 0x66, 0x6a, 0x0d ])
self.assertEqual(encoding3, [ 0x66, 0x68, 0x34, 0x12 ])
if __name__ == '__main__':
regress.main()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment