diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-08-29 18:09:52 +0200 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-08-29 18:49:47 +0200 |
| commit | caec47dc1871782ca445ea34229cd2a5ee600a7f (patch) | |
| tree | ca23e85b3e65801f4680657d10e853661da2b114 /test/ir/ir2C.py | |
| parent | 60f3cb9a31a86b28eeb5abd357608f91652cb75e (diff) | |
| download | miasm-caec47dc1871782ca445ea34229cd2a5ee600a7f.tar.gz miasm-caec47dc1871782ca445ea34229cd2a5ee600a7f.zip | |
Expr: use TOK define instead of strings
Diffstat (limited to 'test/ir/ir2C.py')
| -rwxr-xr-x | test/ir/ir2C.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ir/ir2C.py b/test/ir/ir2C.py index 375dedb8..6df439c2 100755 --- a/test/ir/ir2C.py +++ b/test/ir/ir2C.py @@ -2,7 +2,7 @@ #-*- coding:utf-8 -*- import unittest - +from miasm2.expression.expression import TOK_EQUAL class TestIrIr2C(unittest.TestCase): @@ -32,7 +32,7 @@ class TestIrIr2C(unittest.TestCase): # Binary operators self.translationTest( - ExprOp('==', *args[:2]), r'(((0x0&0xffffffff) == (0x1&0xffffffff))?1:0)') + ExprOp(TOK_EQUAL, *args[:2]), r'(((0x0&0xffffffff) == (0x1&0xffffffff))?1:0)') self.translationTest( ExprOp('%', *args[:2]), r'(((0x0&0xffffffff)%(0x1&0xffffffff))&0xffffffff)') self.translationTest( |