diff options
| author | losynix <louis@losynix.net> | 2018-05-09 15:24:12 +0200 |
|---|---|---|
| committer | losynix <louis@losynix.net> | 2018-05-09 16:34:36 +0200 |
| commit | 9a0eda072a973f50509bc62aa2613fa81a067e42 (patch) | |
| tree | 4b69d2b81b98bb0e98f61d211e62223a4d5edef0 /test/core/asmblock.py | |
| parent | 8f5a42ae2b659f10bdf52adbd8e382e0784f74a1 (diff) | |
| download | miasm-9a0eda072a973f50509bc62aa2613fa81a067e42.tar.gz miasm-9a0eda072a973f50509bc62aa2613fa81a067e42.zip | |
add getby_offset in AsmCFG
Diffstat (limited to 'test/core/asmblock.py')
| -rw-r--r-- | test/core/asmblock.py | 2 |
1 files changed, 2 insertions, 0 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()) |