#NEWLINE# def test_issue_9637( ) : #NEWLINE# #INDENT# n = Symbol ( 'n' ) #NEWLINE# a = FiniteSet ( n ) #NEWLINE# b = FiniteSet ( 2 , n ) #NEWLINE# assert ( Complement ( S . Reals , a ) == Complement ( S . Reals , a , evaluate = False ) ) #NEWLINE# assert ( Complement ( Interval ( 1 , 3 ) , a ) == Complement ( Interval ( 1 , 3 ) , a , evaluate = False ) ) #NEWLINE# assert ( Complement ( Interval ( 1 , 3 ) , b ) == Complement ( Union ( Interval ( 1 , 2 , False , True ) , Interval ( 2 , 3 , True , False ) ) , a ) ) #NEWLINE# assert ( Complement ( n , S . Reals ) == Complement ( a , S . Reals , evaluate = False ) ) #NEWLINE# assert ( Complement ( a , Interval ( 1 , 3 ) ) == Complement ( a , Interval ( 1 , 3 ) , evaluate = False ) )