From 6501324488234434a20d2780843019dd281c944c Mon Sep 17 00:00:00 2001 From: Kirill Smelkov Date: Sun, 17 Aug 2008 14:20:51 +0200 Subject: [PATCH] Add passing tests for #1008 Signed-off-by: Kirill Smelkov Signed-off-by: Ondrej Certik --- sympy/core/tests/test_numbers.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sympy/core/tests/test_numbers.py b/sympy/core/tests/test_numbers.py index 67a9182..af147bd 100644 --- a/sympy/core/tests/test_numbers.py +++ b/sympy/core/tests/test_numbers.py @@ -1,4 +1,4 @@ -from sympy import Rational, Symbol, Real, I, sqrt, oo, nan, pi, Integer, \ +from sympy import Rational, Symbol, Real, I, sqrt, oo, nan, pi, E, Integer, \ Basic, S from sympy.core.power import integer_nthroot import py @@ -297,3 +297,10 @@ def test_Rational_factors(): assert F(6,10) == { 3:1, 5:-1} # TODO write more Rational.factor() tests + + +def test_issue1008(): + assert pi*(E + 10) + pi*(-E - 10) == 0 + assert pi*(E + 10**10) + pi*(-E - 10**10) == 0 + assert pi*(E + 10**20) + pi*(-E - 10**20) == 0 + assert pi*(E + 10**80) + pi*(-E - 10**80) == 0 -- 2.11.4.GIT