about summary refs log tree commit diff stats
path: root/test/expression/simplifications.py
diff options
context:
space:
mode:
authorHugo Porcher <hugo.r.porcher@gmail.com>2019-03-21 11:58:04 -0400
committerHugo Porcher <hugo.r.porcher@gmail.com>2019-03-21 11:58:04 -0400
commit225f5691e6afbeb99c18d91e3511564a93712e11 (patch)
tree3c2da8d277fddde529fc1ae11b27dbb19c538904 /test/expression/simplifications.py
parentaef466589f35233ddd0931ca030c5238eb99a58e (diff)
downloadfocaccia-miasm-225f5691e6afbeb99c18d91e3511564a93712e11.tar.gz
focaccia-miasm-225f5691e6afbeb99c18d91e3511564a93712e11.zip
Use moduint instead of python int and fix test
Diffstat (limited to 'test/expression/simplifications.py')
-rw-r--r--test/expression/simplifications.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/expression/simplifications.py b/test/expression/simplifications.py
index 31d55b71..b1e590ec 100644
--- a/test/expression/simplifications.py
+++ b/test/expression/simplifications.py
@@ -194,7 +194,7 @@ to_test = [(ExprInt(1, 32) - ExprInt(1, 32), ExprInt(0, 32)),
             ExprOp('&', a, ExprInt(0xFFFFFFF0, 32))),
 
            (ExprCompose(ExprInt(0x1234, 16), ExprId("a", 16)) & ExprInt(0xFF, 32), ExprInt(0x34, 32)),
-           (ExprCompose(ExprInt(0x12, 8), ExprInt(0x34, 8)) & ExprInt(0xFFFF, 16), ExprInt(0x3412, 32)),
+           (ExprCompose(ExprInt(0x12, 8), ExprInt(0x34, 8)) & ExprInt(0xFFFF, 16), ExprInt(0x3412, 16)),
            (ExprCompose(ExprInt(0x12, 8), ExprInt(0x3456, 16), ExprInt(0x78, 8)) & ExprInt(0xFFFFFF, 32), ExprInt(0x345612, 32)),
            (ExprCompose(ExprInt(0x1234, 16), ExprId("a", 8), ExprInt(0x67, 8)) & ExprInt(0xFFFFFFFF, 32), ExprCompose(ExprInt(0x1234, 16), ExprId("a", 8), ExprInt(0x67, 8))),