Feat: remove set_render("txt") in doctest
This commit is contained in:
parent
7c4dc05e34
commit
cd590c7fe0
|
@ -11,7 +11,6 @@ Generate and compute like a student!
|
||||||
|
|
||||||
:example:
|
:example:
|
||||||
|
|
||||||
>>> Expression.set_render("txt")
|
|
||||||
>>> e = Expression.from_str("2+3*4")
|
>>> e = Expression.from_str("2+3*4")
|
||||||
>>> e_simplified = e.simplify()
|
>>> e_simplified = e.simplify()
|
||||||
>>> print(e_simplified)
|
>>> print(e_simplified)
|
||||||
|
|
|
@ -24,7 +24,6 @@ class Expression(object):
|
||||||
|
|
||||||
:example:
|
:example:
|
||||||
|
|
||||||
>>> Expression.set_render("txt")
|
|
||||||
>>> e = Expression.from_str("2+3*4")
|
>>> e = Expression.from_str("2+3*4")
|
||||||
>>> e2 = e.simplify()
|
>>> e2 = e.simplify()
|
||||||
>>> print(e2)
|
>>> print(e2)
|
||||||
|
@ -51,7 +50,6 @@ class Expression(object):
|
||||||
:param render: render name (txt or tex)
|
:param render: render name (txt or tex)
|
||||||
|
|
||||||
:example:
|
:example:
|
||||||
>>> Expression.set_render('txt')
|
|
||||||
>>> e = Expression.from_str("2+3*4")
|
>>> e = Expression.from_str("2+3*4")
|
||||||
>>> print(e)
|
>>> print(e)
|
||||||
2 + 3 * 4
|
2 + 3 * 4
|
||||||
|
|
|
@ -29,7 +29,6 @@ class Token(object):
|
||||||
def random(cls):
|
def random(cls):
|
||||||
raise NotImplemented
|
raise NotImplemented
|
||||||
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def set_render(cls, render):
|
def set_render(cls, render):
|
||||||
""" Define default render function
|
""" Define default render function
|
||||||
|
|
Loading…
Reference in New Issue