diff options
| author | Florent Monjalet <florent.monjalet@gmail.com> | 2015-12-05 15:21:23 +0100 |
|---|---|---|
| committer | Florent Monjalet <florent.monjalet@gmail.com> | 2016-01-18 14:02:32 +0100 |
| commit | e9ab0bd0f9c6dde642904cb473d57de9c81747b5 (patch) | |
| tree | 5d8193dfe3f2dbdb4f259eca21b9dda2d69bddb0 /test | |
| parent | 36cae74bff4674396b35a208bc7ac57f0d4e2b6b (diff) | |
| download | miasm-e9ab0bd0f9c6dde642904cb473d57de9c81747b5.tar.gz miasm-e9ab0bd0f9c6dde642904cb473d57de9c81747b5.zip | |
Types: short test to assert MemStruct unicity
Diffstat (limited to 'test')
| -rw-r--r-- | test/core/types.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/core/types.py b/test/core/types.py index de6034ef..96765fe7 100644 --- a/test/core/types.py +++ b/test/core/types.py @@ -486,6 +486,10 @@ assert Array(Num("I")).lval != Array(Num("B")).lval assert Array(Num("B"), 20).lval == Array(Num("B"), 20).lval assert Array(Num("B"), 19).lval != Array(Num("B"), 20).lval +# MemStruct unicity test +assert MyStruct == Struct(MyStruct.__name__, MyStruct.fields).lval +assert MyStruct.get_type() == Struct(MyStruct.__name__, MyStruct.fields) + # Repr tests |