Browse files

Fix failing FiniteSet test in

  • Loading branch information...
aktech committed Jun 22, 2015
1 parent a5ee04b commit e8e6a0bb9285c315e9bade2bcd10b954760d4965
Showing with 6 additions and 2 deletions.
  1. +6 −2 sympy/core/tests/
@@ -19,7 +19,7 @@
continued_fraction_periodic as cf_p, continued_fraction_convergents as cf_c,
continued_fraction_reduce as cf_r, FiniteSet, elliptic_e, elliptic_f,
powsimp, hessian, wronskian, fibonacci, sign, Lambda, Piecewise, Subs,
residue, Derivative, logcombine, Symbol)
residue, Derivative, logcombine, Symbol, Intersection, Union)

import mpmath
from sympy.functions.combinatorial.numbers import stirling
@@ -70,8 +70,12 @@ def test_B1():

def test_B2():
a, b, c = FiniteSet(j), FiniteSet(m), FiniteSet(j, k)
d, e = FiniteSet(i), FiniteSet(j, k, l)

assert (FiniteSet(i, j, j, k, k, k) & FiniteSet(l, k, j) &
FiniteSet(j, m, j)) == FiniteSet(j)
FiniteSet(j, m, j)) == Union(a, Intersection(b, Union(c, Intersection(d, e))))
# {j} U Intersection({m}, {j, k} U Intersection({i}, {j, k, l}))

def test_B3():

0 comments on commit e8e6a0b

Please sign in to comment.