MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / assert_rects_approx_eq

Function assert_rects_approx_eq

tests/test_general.py:720–721  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

718 def rects_approx_eq(a, b):
719 return points_approx_eq(a.bottom_left, b.bottom_left) and points_approx_eq(a.top_right, b.top_right)
720 def assert_rects_approx_eq(a, b):
721 assert rects_approx_eq(a, b), f'Not nearly identical: {a=} {b=}'
722
723 blocks = page.get_text('blocks')
724 print(f'test_2710(): {blocks=}')

Callers 1

test_2710Function · 0.85

Calls 1

rects_approx_eqFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…