From 2b6c74acd7a22eb7dea4c9e29224d7d4b2a993b2 Mon Sep 17 00:00:00 2001 From: Connor Ferster Date: Tue, 14 Oct 2025 09:25:48 -0700 Subject: [PATCH] tests: add previously failing test --- tests/test_load_distribution.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_load_distribution.py b/tests/test_load_distribution.py index 95ee7cc..d009058 100644 --- a/tests/test_load_distribution.py +++ b/tests/test_load_distribution.py @@ -197,6 +197,10 @@ def test_singularities_to_polygon(): ld.singularities_to_polygon(square_45_sings[0] + square_45_sings[1]).wkt == "POLYGON ((0 0, 0 0, 5 10, 5 10, 10 0, 10 0, 0 0))" ) + assert ( + ld.singularities_to_polygon(square_45_sings[0] + square_45_sings[1], xy=True) + == ([0.0, 1e-12, 4.999999999999, 5.000000000001, 9.999999999999, 10.000000000001], [0.0, 0.0, 10.0, 10.0, 0.0, 0.0]) + ) assert ( ld.singularities_to_polygon( square_pac_man_sings[0] + square_pac_man_sings[1]