Skip to content

Commit 2b6fa95

Browse files
committed
Manually added disjoint test by @robbievanleeuwen because my branch would not pull his changes...?
1 parent 0c3e26f commit 2b6fa95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sectionproperties/tests/test_sections.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,12 +445,16 @@ def test_check_geometry_disjoint():
445445
rect2 = rectangular_section(d=50, b=50).shift_section(x_offset=50)
446446
assert check_geometry_disjoint([rect.geom, rect2.geom]) == False
447447

448+
rect3 = rectangular_section(d=25, b=25).shift_section(y_offset=50)
449+
assert check_geometry_disjoint([rect.geom, rect2.geom, rect3.geom]) == False
450+
448451
assert check_geometry_disjoint([rect.geom, circ.geom]) == True
449452

450453
rect2 = rectangular_section(d=50, b=50).shift_section(x_offset=50)
451454
assert check_geometry_disjoint([rect.geom, rect2.geom]) == False
452455

453456

457+
454458
def test_warping_disjoint_warning():
455459
rect = rectangular_section(d=50, b=50)
456460
circ = circular_section(d=50, n=32).shift_section(x_offset=125, y_offset=25)

0 commit comments

Comments
 (0)