MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_box_repr

Function test_box_repr

lib/matplotlib/tests/test_mathtext.py:600–636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598
599
600def test_box_repr():
601 s = repr(_mathtext.Parser().parse(
602 r"$\frac{1}{2}$",
603 _mathtext.DejaVuSansFonts(fm.FontProperties(), LoadFlags.NO_HINTING),
604 fontsize=12, dpi=100))
605 assert s == textwrap.dedent("""\
606 Hlist<w=9.51 h=14.24 d=6.06 s=0.00>[
607 Hlist<w=0.00 h=0.00 d=0.00 s=0.00>[],
608 Hlist<w=9.51 h=14.24 d=6.06 s=0.00>[
609 Hlist<w=9.51 h=14.24 d=6.06 s=0.00>[
610 Hbox,
611 Vlist<w=7.43 h=20.30 d=0.00 s=6.06>[
612 HCentered<w=7.43 h=8.51 d=0.00 s=0.00>[
613 Glue,
614 Hlist<w=7.43 h=8.51 d=0.00 s=0.00>[
615 `1`,
616 k2.36,
617 ],
618 Glue,
619 ],
620 Vbox,
621 Hrule,
622 Vbox,
623 HCentered<w=7.43 h=8.66 d=0.00 s=0.00>[
624 Glue,
625 Hlist<w=7.43 h=8.66 d=0.00 s=0.00>[
626 `2`,
627 k2.02,
628 ],
629 Glue,
630 ],
631 ],
632 Hbox,
633 ],
634 ],
635 Hlist<w=0.00 h=0.00 d=0.00 s=0.00>[],
636 ]""")

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…