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

Method test_subscript

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

Source from the content-addressed store, hash-verified

86 assert omml_to_latex(elem) == "{x}^{2}"
87
88 def test_subscript(self):
89 elem = _wrap_in_omath(
90 "<m:sSub>"
91 "<m:e><m:r><m:t>x</m:t></m:r></m:e>"
92 "<m:sub><m:r><m:t>i</m:t></m:r></m:sub>"
93 "</m:sSub>"
94 )
95 assert omml_to_latex(elem) == "{x}_{i}"
96
97 def test_sub_superscript(self):
98 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