Skip to content

Commit

Permalink
Updated test to handle having a grouping operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahGale committed Aug 22, 2024
1 parent 3ddecf3 commit 7713327
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_geometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,11 @@ def test_parse_input_tree():
half_space = HalfSpace.parse_input_node(geometry)
assert half_space.operator == Operator.COMPLEMENT
assert half_space.right is None
assert half_space.left.operator == Operator.INTERSECTION
assert half_space.left.operator == Operator.GROUP
nested = half_space.left.left
assert nested.operator == Operator.INTERSECTION
assert nested.right is not None
assert nested.left.operator == Operator.INTERSECTION


def test_update_tree_with_comment():
Expand Down

0 comments on commit 7713327

Please sign in to comment.