Skip to content
Snippets Groups Projects
Commit 4cf4800d authored by fvrmatteo's avatar fvrmatteo
Browse files

Added test case for issue #73

parent e84f7e45
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python
# Github issue: #73
# Author: fvrmatteo
# Description: missing memory size indicator
from keystone import *
import regress
class TestX86(regress.RegressTest):
def runTest(self):
# Initialize Keystone engine
ks = Ks(KS_ARCH_X86, KS_MODE_32)
# Assemble to get back insn encoding & statement count
encoding, count = ks.asm(b"add ptr ss:[eax + ebx], 0x777")
# Assert the result
self.assertEqual(encoding, [])
if __name__ == '__main__'
regress.main()
\ No newline at end of file
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