Exemplo n.º 1
0
def test_sstrrepr():
    assert sstr('abc') == 'abc'
    assert sstrrepr('abc') == "'abc'"

    e = ['a', 'b', 'c', x]
    assert sstr(e) == "[a, b, c, x]"
    assert sstrrepr(e) == "['a', 'b', 'c', x]"
Exemplo n.º 2
0
def test_sstrrepr():
    assert sstr('abc') == 'abc'
    assert sstrrepr('abc') == "'abc'"

    e = ['a', 'b', 'c', x]
    assert sstr(e) == "[a, b, c, x]"
    assert sstrrepr(e) == "['a', 'b', 'c', x]"
Exemplo n.º 3
0
def test_sstrrepr():
    assert sstr("abc") == "abc"
    assert sstrrepr("abc") == "'abc'"

    e = ["a", "b", "c", x]
    assert sstr(e) == "[a, b, c, x]"
    assert sstrrepr(e) == "['a', 'b', 'c', x]"
Exemplo n.º 4
0
def test_sstrrepr():
    assert sstr("abc") == "abc"
    assert sstrrepr("abc") == "'abc'"

    e = ["a", "b", "c", x]
    assert sstr(e) == "[a, b, c, x]"
    assert sstrrepr(e) == "['a', 'b', 'c', x]"
Exemplo n.º 5
0
def test_Str():
    from sympy.core.symbol import Str
    assert str(Str('x')) == 'x'
    assert sstrrepr(Str('x')) == "Str('x')"