MCPcopy Index your code
hub / github.com/Layout-Parser/layout-parser / test_layout_comp

Function test_layout_comp

tests/test_elements.py:316–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314
315
316def test_layout_comp():
317 a = Layout([Rectangle(1, 2, 3, 4)])
318 b = Layout([Rectangle(1, 2, 3, 4)])
319
320 assert a == b
321
322 a.append(Rectangle(1, 2, 3, 5))
323 assert a != b
324 b.append(Rectangle(1, 2, 3, 5))
325 assert a == b
326
327 a = Layout([TextBlock(Rectangle(1, 2, 3, 4))])
328 assert a != b
329
330
331def test_shape_operations():

Callers

nothing calls this directly

Calls 3

LayoutClass · 0.90
RectangleClass · 0.90
TextBlockClass · 0.90

Tested by

no test coverage detected