#NEWLINE# def test_xor( self ) : #NEWLINE# #INDENT# ( x , y , z ) = ints ( 'xyz' ) #NEWLINE# fn = gof . DualLinker ( ) . accept ( FunctionGraph ( [ x , y ] , [ ( x ^ y ) ] ) ) . make_function ( ) #NEWLINE# for ( a , b ) in ( ( 0 , 1 ) , ( 0 , 0 ) , ( 1 , 0 ) , ( 1 , 1 ) ) : #NEWLINE# #INDENT# self . assertTrue ( ( fn ( a , b ) == ( a ^ b ) ) , ( a , b ) )