Exemple #1
0
def test_mathtext_parser():
    u"On teste simplement qu'aucune erreur n'est renvoyée."
    # Bug matplotlib 1.1.1
    mathtext_parser("$A'$")
    mathtext_parser(u"$A'$")
    mathtext_parser(u"$f'$ est la dérivée")
    mathtext_parser(u"$1^{er}$ dé")
    mathtext_parser(r"$\left]-\infty;\frac{1}{3}\right]\cup\left[2;5\right[$")
Exemple #2
0
def test_mathtext_parser():
    u"On teste simplement qu'aucune erreur n'est renvoyée."
    # Bug matplotlib 1.1.1
    mathtext_parser("$A'$")
    mathtext_parser(u"$A'$")
    mathtext_parser(u"$f'$ est la dérivée")
    mathtext_parser(u"$1^{er}$ dé")
Exemple #3
0
def test_parser_matplotlib():
    c = Formule._caractere_erreur
    c_math = '$%s$' %c
    assert(mathtext_parser(c))
    assert(mathtext_parser(c_math))
def test_parser_matplotlib():
    c = Formule._caractere_erreur
    c_math = "$%s$" % c
    assert mathtext_parser(c)
    assert mathtext_parser(c_math)