MCPcopy
hub / github.com/HKUDS/RAG-Anything / test_superscript

Method test_superscript

tests/test_omml_extractor.py:79–86  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

77 assert omml_to_latex(elem) == r"\frac{a}{b}"
78
79 def test_superscript(self):
80 elem = _wrap_in_omath(
81 "<m:sSup>"
82 "<m:e><m:r><m:t>x</m:t></m:r></m:e>"
83 "<m:sup><m:r><m:t>2</m:t></m:r></m:sup>"
84 "</m:sSup>"
85 )
86 assert omml_to_latex(elem) == "{x}^{2}"
87
88 def test_subscript(self):
89 elem = _wrap_in_omath(

Callers

nothing calls this directly

Calls 2

omml_to_latexFunction · 0.90
_wrap_in_omathFunction · 0.85

Tested by

no test coverage detected