diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-03-30 16:24:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-30 16:24:26 +0200 |
| commit | 7947f33a61118c35a6b24aaac29337e2739216b4 (patch) | |
| tree | 6c281f7fc4efd326fb95151173b7847026a94f05 /test/expression/stp.py | |
| parent | cedf19e7d73ca8d603f2e1ed7f5306db27678e65 (diff) | |
| parent | e8916cf8cc44a0cc375af762b38798cb378b986c (diff) | |
| download | miasm-7947f33a61118c35a6b24aaac29337e2739216b4.tar.gz miasm-7947f33a61118c35a6b24aaac29337e2739216b4.zip | |
Merge pull request #509 from commial/fix/int-singleton
Fix/int singleton
Diffstat (limited to '')
| -rwxr-xr-x | test/expression/stp.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/expression/stp.py b/test/expression/stp.py index b911a2a4..a4b037de 100755 --- a/test/expression/stp.py +++ b/test/expression/stp.py @@ -7,9 +7,9 @@ import unittest class TestIrIr2STP(unittest.TestCase): def test_ExprOp_strcst(self): - from miasm2.expression.expression import ExprInt32, ExprOp + from miasm2.expression.expression import ExprInt, ExprOp import miasm2.expression.stp # /!\ REALLY DIRTY HACK - args = [ExprInt32(i) for i in xrange(9)] + args = [ExprInt(i, 32) for i in xrange(9)] self.assertEqual( ExprOp('|', *args[:2]).strcst(), r'(0bin00000000000000000000000000000000 | 0bin00000000000000000000000000000001)') @@ -20,9 +20,9 @@ class TestIrIr2STP(unittest.TestCase): self.assertRaises(ValueError, ExprOp('X', *args[:1]).strcst) def test_ExprSlice_strcst(self): - from miasm2.expression.expression import ExprInt32, ExprSlice + from miasm2.expression.expression import ExprInt, ExprSlice import miasm2.expression.stp # /!\ REALLY DIRTY HACK - args = [ExprInt32(i) for i in xrange(9)] + args = [ExprInt(i, 32) for i in xrange(9)] self.assertEqual( args[0][1:2].strcst(), r'(0bin00000000000000000000000000000000)[1:1]') |