Skip to content

Commit

Permalink
Assert array dynamic or static
Browse files Browse the repository at this point in the history
  • Loading branch information
Troublor committed Apr 21, 2023
1 parent 73f5ad3 commit 063418d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/slithir/test_ssa_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1068,10 +1068,13 @@ def test_issue_1776():
new_op = operations[0]
lvalue = new_op.lvalue
lvalue_type = lvalue.type
assert lvalue_type.is_dynamic
assert isinstance(lvalue_type, ArrayType)
lvalue_type1 = lvalue_type.type
assert not lvalue_type1.is_dynamic
assert isinstance(lvalue_type1, ArrayType)
assert lvalue_type1.length_value.value == "10"
lvalue_type2 = lvalue_type1.type
assert not lvalue_type2.is_dynamic
assert isinstance(lvalue_type2, ArrayType)
assert lvalue_type2.length_value.value == "5"

0 comments on commit 063418d

Please sign in to comment.