Skip to content

Commit

Permalink
Add doctest for translate function
Browse files Browse the repository at this point in the history
  • Loading branch information
moble committed Oct 2, 2013
1 parent c45a00a commit a8e60bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sympy/printing/latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1636,6 +1636,10 @@ def translate(s):
return the appropriate latex.
Let everything else pass as given.
>>> from sympy.printing.latex import translate
>>> translate('alphahatdotprime')
"{\\dot{\\hat{\\alpha}}}'"
'''
# Process accents, if any, and recurse
for key in accent_keys:
Expand Down

0 comments on commit a8e60bd

Please sign in to comment.