Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent 9b6bd3a commit f59e52f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ class VarnodeTests(TestCase):

def test_getSpaceFromConst(self):
ctx = Context("x86:LE:64:default")
tx = ctx.translate(b"\x48\x8B\x41\x01") # mov rax, [rcx + 1]
tx = ctx.translate(b"\x48\x8b\x41\x01") # mov rax, [rcx + 1]
assert tx.ops[2].inputs[0].getSpaceFromConst().name == "ram"

def test_getRegisterName(self):
ctx = Context("x86:LE:64:default")
tx = ctx.translate(b"\x48\x8B\x41\x01") # mov rax, [rcx + 1]
tx = ctx.translate(b"\x48\x8b\x41\x01") # mov rax, [rcx + 1]
assert tx.ops[1].inputs[0].getRegisterName() == "RCX"
assert tx.ops[1].inputs[1].getRegisterName() == ""

Expand Down

0 comments on commit f59e52f

Please sign in to comment.