#NEWLINE# def test_mergesort_4( ) : #NEWLINE# #INDENT# table1 = ( ( 'foo' , 'bar' , 'baz' ) , ( 1 , 'A' , True ) , ( 2 , 'B' , None ) , ( 4 , 'C' , True ) ) #NEWLINE# table2 = ( ( 'bar' , 'baz' , 'quux' ) , ( 'A' , True , 42.0 ) , ( 'B' , False , 79.3 ) , ( 'C' , False , 12.4 ) ) #NEWLINE# expect = sort ( cat ( table1 , table2 ) , key = 'bar' ) #NEWLINE# actual = mergesort ( table1 , table2 , key = 'bar' ) #NEWLINE# ieq ( expect , actual ) #NEWLINE# ieq ( expect , actual )