Returns True if rectangles r1 and r2 overlap (strictly), False otherwise.
(r1, r2)
| 753 | return rect["top"] + rect["height"] |
| 754 | |
| 755 | def is_overlapping(r1, r2): |
| 756 | """ |
| 757 | Returns True if rectangles r1 and r2 overlap (strictly), |
| 758 | False otherwise. |
| 759 | """ |
| 760 | return not ( |
| 761 | right(r1) <= r2["left"] |
| 762 | or r1["left"] >= right(r2) |
| 763 | or bottom(r1) <= r2["top"] |
| 764 | or r1["top"] >= bottom(r2) |
| 765 | ) |
| 766 | |
| 767 | # 1) Check each subsection is within the main section |
| 768 | names_violating = set() |
no test coverage detected