Skip to content

Commit

Permalink
Added Tests
Browse files Browse the repository at this point in the history
Checks multiplication symbol for
both unicode and ascii
Fixes sympy#10413
  • Loading branch information
tokencolour committed Jan 18, 2016
1 parent 7e9c698 commit ffe2c82
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sympy/printing/pretty/tests/test_pretty.py
Expand Up @@ -3147,6 +3147,14 @@ def test_ProductSet_paranthesis():
a, b, c = Interval(2, 3), Interval(4, 7), Interval(1, 9)
assert upretty(Union(a*b, b*FiniteSet(1, 2))) == ucode_str

def test_ProductSet_prod_char():
from sympy import Interval
ascii_str = '[2, 3] x [4, 7]'
ucode_str = u('[2, 3] × [4, 7]')

a, b = Interval(2, 3), Interval(4, 7)
assert pretty(a*b) == ascii_str
assert upretty(a*b) == ucode_str

def test_pretty_sequences():
s1 = SeqFormula(a**2, (0, oo))
Expand Down

0 comments on commit ffe2c82

Please sign in to comment.