コード例 #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[$")
コード例 #2
0
ファイル: test_parsers.py プロジェクト: TeddyBoomer/geophar
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é")
コード例 #3
0
ファイル: test_variables.py プロジェクト: wxgeo/geophar
def test_parser_matplotlib():
    c = Formule._caractere_erreur
    c_math = '$%s$' %c
    assert(mathtext_parser(c))
    assert(mathtext_parser(c_math))
コード例 #4
0
ファイル: test_variables.py プロジェクト: TeddyBoomer/geophar
def test_parser_matplotlib():
    c = Formule._caractere_erreur
    c_math = "$%s$" % c
    assert mathtext_parser(c)
    assert mathtext_parser(c_math)