diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2018-07-28 13:27:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-28 13:27:01 +0200 |
| commit | 7acc9f00489f0f9444b8fa2e5068317c0de90f38 (patch) | |
| tree | fb69aea0d7dcd0438701b0b71be3833997ecabef /test/core/locationdb.py | |
| parent | bb1cc452ca771ea6800ccfebd4c45237ba9a7554 (diff) | |
| parent | ab0cf7308e9fb0c5ddeb2e49da75193cd7d50304 (diff) | |
| download | miasm-7acc9f00489f0f9444b8fa2e5068317c0de90f38.tar.gz miasm-7acc9f00489f0f9444b8fa2e5068317c0de90f38.zip | |
Merge pull request #803 from commial/feature/linux-env
Feature/linux env
Diffstat (limited to 'test/core/locationdb.py')
| -rw-r--r-- | test/core/locationdb.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/core/locationdb.py b/test/core/locationdb.py index b9a5f707..61bc4563 100644 --- a/test/core/locationdb.py +++ b/test/core/locationdb.py @@ -92,6 +92,11 @@ loc_key5_bis = loc_db.get_or_create_name_location(name3) assert loc_db.get_name_location(name3) == loc_key5_bis loc_db.consistency_check() +# Name and offset manipulation +assert loc_db.get_name_offset(name2) is None +assert loc_db.get_name_offset("unk_name") is None +assert loc_db.get_name_offset("first_name") == 0x5678 + # Merge loc_db2 = LocationDB() loc_db2.add_location(offset=0x3344) |