Skip to content

Commit

Permalink
Complete test for 'segments_intersect' function
Browse files Browse the repository at this point in the history
  • Loading branch information
lycantropos committed Jan 9, 2021
1 parent 1efa3fc commit f883205
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/planar_tests/test_segments_intersect.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@

from bentley_ottmann.planar import segments_intersect
from tests.utils import (reverse_segment,
reverse_segment_coordinates)
reverse_segment_coordinates,
segments_pair_intersections)
from . import strategies


Expand All @@ -34,10 +35,9 @@ def test_step(context: Context, segments: List[Segment]) -> None:

assert (next_result
is (result
or any(context.segments_intersections(first_segment.start,
first_segment.end,
segment.start,
segment.end)
or any(segments_pair_intersections(first_segment.start,
first_segment.end,
segment.start, segment.end)
for segment in rest_segments)))


Expand Down

0 comments on commit f883205

Please sign in to comment.