From 3eb21161cf2f7be4e31c4040c1a59746b9b42949 Mon Sep 17 00:00:00 2001 From: Andrew Port Date: Fri, 3 Feb 2023 21:00:57 -0500 Subject: [PATCH] add report of intersection count --- test/test_path.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/test_path.py b/test/test_path.py index 15a198b..4190f70 100644 --- a/test/test_path.py +++ b/test/test_path.py @@ -1536,8 +1536,9 @@ class Test_intersect(unittest.TestCase): path1 = random_path() path2 = random_path() t = time.time() - path1.intersect(path2) - print(f"\nIntersection calculation took {time.time() - t} seconds.\n") + intersections = path1.intersect(path2) + print("\nFound {} intersections in {} seconds.\n" + "".format(len(intersections), time.time() - t)) def test_line_line_0(self): l0 = Line(start=(25.389999999999997+99.989999999999995j),