Skip to content

Commit

Permalink
Rename test case and clarify its docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
compor committed Jun 7, 2023
1 parent 480a258 commit 147bd69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,11 @@ def test_region_clone_into_circular_blocks():
assert region.is_structurally_equivalent(region2)


def test_non_empty_block_with_parent_region_requires_terminator():
def test_non_empty_block_with_parent_region_requires_terminator_with_successors():
"""
Tests that an empty block belonging to a multi-block region with parent
Tests that an non-empty block belonging to a multi-block region with parent
operation requires terminator operation.
The terminator operation may have successors.
"""
block0 = Block([])
block1 = Block([TestOp.create(successors=[block0])])
Expand Down

0 comments on commit 147bd69

Please sign in to comment.