def test_settings(): pytest.raises(TypeError, lambda: srepr(x, method='garbage'))
def test_Add(): sT(x + y, "Add(Symbol('x'), Symbol('y'))") assert srepr(x**2 + 1, order='lex') == ("Add(Pow(Symbol('x'), " 'Integer(2)), Integer(1))')
def test_issue_4788(): assert srepr(sympify(1.0 + 0J)) == srepr(Float(1.0)) == srepr(Float(1.0))