Skip to content

Commit 2955e8a

Browse files
Merge pull request #14 from StructuralPython/releases/v0.1.7
tests: add previously failing test
2 parents 08cd0ee + 2b6c74a commit 2955e8a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/test_load_distribution.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,10 @@ def test_singularities_to_polygon():
197197
ld.singularities_to_polygon(square_45_sings[0] + square_45_sings[1]).wkt
198198
== "POLYGON ((0 0, 0 0, 5 10, 5 10, 10 0, 10 0, 0 0))"
199199
)
200+
assert (
201+
ld.singularities_to_polygon(square_45_sings[0] + square_45_sings[1], xy=True)
202+
== ([0.0, 1e-12, 4.999999999999, 5.000000000001, 9.999999999999, 10.000000000001], [0.0, 0.0, 10.0, 10.0, 0.0, 0.0])
203+
)
200204
assert (
201205
ld.singularities_to_polygon(
202206
square_pac_man_sings[0] + square_pac_man_sings[1]

0 commit comments

Comments
 (0)