diff options
Diffstat (limited to 'test/core')
| -rw-r--r-- | test/core/asmblock.py | 2 | ||||
| -rwxr-xr-x | test/core/test_types.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/test/core/asmblock.py b/test/core/asmblock.py index eb7b54b2..7f0dbc5f 100644 --- a/test/core/asmblock.py +++ b/test/core/asmblock.py @@ -41,6 +41,8 @@ assert len(blocks.pendings) == 0 assert len(blocks.nodes()) == 17 assert len(blocks.edges2constraint) == len(blocks.edges()) assert len(blocks.edges()) == 24 +assert blocks.getby_offset(0x63).lines[0].offset == 0x5f +assert blocks.getby_offset(0x69).lines[0].offset == 0x69 ## Convert to dot open("graph.dot", "w").write(blocks.dot()) diff --git a/test/core/test_types.py b/test/core/test_types.py index ab1d47c4..0b5f6baa 100755 --- a/test/core/test_types.py +++ b/test/core/test_types.py @@ -465,7 +465,7 @@ assert Union([("f2", Num("B")), ("f2", Num("H"))]) != \ assert Union([("f1", Num("B")), ("f2", Num("H"))]) != \ Union([("f1", Num("I")), ("f2", Num("H"))]) assert Bits(Num("I"), 3, 8) == Bits(Num("I"), 3, 8) -assert Bits(Num("I"), 3, 8) != Bits(Num("I"), 3, 8) +assert (Bits(Num("I"), 3, 8) != Bits(Num("I"), 3, 8)) is False assert Bits(Num("H"), 2, 8) != Bits(Num("I"), 3, 8) assert Bits(Num("I"), 3, 7) != Bits(Num("I"), 3, 8) assert BitField(Num("B"), [("f1", 2), ("f2", 4), ("f3", 1)]) == \ |