[GCI] Make XFAIL test for issue #972

Closed
wants to merge 5 commits into
from
@@ -252,3 +252,7 @@ def test_subs_bugs():
'-4.92535585957223e-10'
assert NS('Piecewise((x, x>0)) + Piecewise((1-x, x>0))', subs={x:0.1}) == \
'1.00000000000000'
+
+@XFAIL
+def test_issue_2107 () :
+ assert sqrt(2).n(2) - sqrt(2).n(2) != 0
@smichr

smichr Jan 15, 2012

Member

This passes in master for me:

>>> sqrt(2).n(2) - sqrt(2).n(2)
0
@smichr

smichr Jan 15, 2012

Member

commit 3d537a9
Author: Mateusz Paprocki mattpap@gmail.com
Date: Sat Jul 30 20:15:28 2011 +0200

Added arithmetic methods to number classes
@@ -467,3 +467,8 @@ def _eval_derivative(self, s):
expr = MyExpr(x,y,z)
assert diff(expr,x,y,f(x),z) == Derivative(expr,f(x),z)
assert diff(expr,f(x),x) == Derivative(expr,f(x),x)
+
+@XFAIL
+def test_issue_1612() :
+ x= Symbol("x")
+ assert Symbol('f')(x) != Function('f')(x)
@smichr

smichr Jan 15, 2012

Member

Inside an XFAIL you put what you want to be true...so this should be ==. Check the rest; I think you've got the same error repeated throughout this pull request.

@smichr

smichr Jan 15, 2012

Member

oh...I thought there were more tests...I've made comments on all tests that need attention.

@@ -400,3 +400,8 @@ def test_no_arith_subs_on_floats():
(x + y + 3.0).subs(x + 3.0, a) == a + y
(x + y + 3.0).subs(x + 2.0, a) == x + y + 3.0
+
+@XFAIL
+def test_issue_2261() :
+ x = Symbol("x")
+ assert (1/x).subs(x, 0) == oo
@smichr

smichr Jan 15, 2012

Member

we want this to be zoo, I believe

@@ -676,3 +676,7 @@ def test_atom_bug():
from sympy import meijerg
from sympy.integrals.risch import heurisch
assert heurisch(meijerg([], [], [1], [], x), x) is None
+@XFAIL
@smichr

smichr Jan 15, 2012

Member

leave a blank line before the XFAIL

+def test_issue_1116() :
+ x= Symbol("x")
@smichr

smichr Jan 15, 2012

Member

put a space to the left of =

+ assert integrate(1/(x**2), (x, -1, 1)) == oo