Skip to content

Commit 5abc02d

Browse files
committed
Add test for mathtext operators
1 parent 5f871dc commit 5abc02d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

lib/matplotlib/tests/test_mathtext.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,3 +510,31 @@ def test_mathtext_cmr10_minus_sign():
510510
ax.plot(range(-1, 1), range(-1, 1))
511511
# draw to make sure we have no warnings
512512
fig.canvas.draw()
513+
514+
515+
def test_mathtext_operators():
516+
test_str = r'''
517+
\increment \smallin \notsmallowns
518+
\smallowns \QED \rightangle
519+
\smallintclockwise \smallvarointclockwise
520+
\smallointctrcclockwise
521+
\ratio \minuscolon \dotsminusdots
522+
\sinewave \simneqq \nlesssim
523+
\ngtrsim \nlessgtr \ngtrless
524+
\cupleftarrow \oequal \rightassert
525+
\rightModels \hermitmatrix \barvee
526+
\measuredrightangle \varlrtriangle
527+
\equalparallel \npreccurlyeq \nsucccurlyeq
528+
\nsqsubseteq \nsqsupseteq \sqsubsetneq
529+
\sqsupsetneq \disin \varisins
530+
\isins \isindot \varisinobar
531+
\isinobar \isinvb \isinE
532+
\nisd \varnis \nis
533+
\varniobar \niobar \bagmember
534+
\triangle'''.split()
535+
536+
fig = plt.figure()
537+
for x, i in enumerate(test_str):
538+
fig.text(0.5, (x + 0.5)/len(test_str), r'${%s}$' % i)
539+
540+
fig.draw_without_rendering()

0 commit comments

Comments
 (0)