8000 Added test for overset/underset · matplotlib/matplotlib@4ce7efc · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ce7efc

Browse files
committed
Added test for overset/underset
1 parent 6bd127a commit 4ce7efc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
# images.
116116
lightweight_math_tests = [
117117
r'$\sqrt[ab]{123}$', # github issue #8665
118+
r'$x \overset{f}{\rightarrow} \overset{f}{x} \underset{xx}{ff} \overset{xx}{ff} \underset{f}{x} \underset{f}{\leftarrow} x$', # github issue #18241
118119
]
119120

120121
digits = "0123456789"
@@ -246,6 +247,8 @@ def test_fontinfo():
246247
(r'$\left($', r'Expected "\right"'),
247248
(r'$\dfrac$', r'Expected \dfrac{num}{den}'),
248249
(r'$\dfrac{}{}$', r'Expected \dfrac{num}{den}'),
250+
(r'$\overset$', r'Expected \overset{body}{annotation}'),
251+
(r'$\underset$', r'Expected \underset{body}{annotation}'),
249252
],
250253
ids=[
251254
'hspace without value',
@@ -266,6 +269,8 @@ def test_fontinfo():
266269
'unclosed parentheses without sizing',
267270
'dfrac without parameters',
268271
'dfrac with empty parameters',
272+
'overset without parameters',
273+
'underset without parameters',
269274
]
270275
)
271276
def test_mathtext_exceptions(math, msg):

0 commit comments

Comments
 (0)
0