nseries: robustify test_bug4
commiteceeea59e4ced49d845cecf3c19932c79cc76b97
authorKirill Smelkov <kirr@landau.phys.spbu.ru>
Thu, 24 Jul 2008 21:04:06 +0000 (25 01:04 +0400)
committerKirill Smelkov <kirr@landau.phys.spbu.ru>
Thu, 24 Jul 2008 21:04:06 +0000 (25 01:04 +0400)
tree94d77419b96a07671ba06590462a000363341acb
parent696acc01214dd31e639174d23ae1e9a0530c1400
nseries: robustify test_bug4

correctness verified with `cancel`:

In [1]: cancel(1/x/(1 + 2/x + x**(-2)))
Out[1]:
     x
────────────
           2
1 + 2*x + x

In [2]: cancel(1/(1+x/2+1/x/2)/2)
Out[2]:
     x
────────────
           2
1 + 2*x + x
sympy/series/tests/test_nseries.py