#NEWLINE# def test_bool( ) : #NEWLINE# #INDENT# assert ( Eq ( 0 , 0 ) is S . true ) #NEWLINE# assert ( Eq ( 1 , 0 ) is S . false ) #NEWLINE# assert ( Ne ( 0 , 0 ) is S . false ) #NEWLINE# assert ( Ne ( 1 , 0 ) is S . true ) #NEWLINE# assert ( Lt ( 0 , 1 ) is S . true ) #NEWLINE# assert ( Lt ( 1 , 0 ) is S . false ) #NEWLINE# assert ( Le ( 0 , 1 ) is S . true ) #NEWLINE# assert ( Le ( 1 , 0 ) is S . false ) #NEWLINE# assert ( Le ( 0 , 0 ) is S . true ) #NEWLINE# assert ( Gt ( 1 , 0 ) is S . true ) #NEWLINE# assert ( Gt ( 0 , 1 ) is S . false ) #NEWLINE# assert ( Ge ( 1 , 0 ) is S . true ) #NEWLINE# assert ( Ge ( 0 , 1 ) is S . false ) #NEWLINE# assert ( Ge ( 1 , 1 ) is S . true ) #NEWLINE# assert ( Eq ( I , 2 ) is S . false ) #NEWLINE# assert ( Ne ( I , 2 ) is S . true ) #NEWLINE# raises ( TypeError , ( lambda : Gt ( I , 2 ) ) ) #NEWLINE# raises ( TypeError , ( lambda : Ge ( I , 2 ) ) ) #NEWLINE# raises ( TypeError , ( lambda : Lt ( I , 2 ) ) ) #NEWLINE# raises ( TypeError , ( lambda : Le ( I , 2 ) ) ) #NEWLINE# a = Float ( '.000000000000000000001' , '' ) #NEWLINE# b = Float ( '.0000000000000000000001' , '' ) #NEWLINE# assert ( Eq ( ( pi + a ) , ( pi + a ) ) is S . false )