#NEWLINE# def test_least( ) : #NEWLINE# #INDENT# ( s_data , t_data ) = ( [ 1 , 2 ] , [ 2 , 1 ] ) #NEWLINE# ( s , t ) = ( symbol ( 's' , discover ( s_data ) ) , symbol ( 't' , discover ( t_data ) ) ) #NEWLINE# result = compute ( least ( s , t ) , { #NEWLINE# #INDENT# s : s_data , #NEWLINE# t : t_data , #NEWLINE# #UNINDENT# } ) #NEWLINE# expected = np . minimum ( s_data , t_data ) . tolist ( ) #NEWLINE# assert ( list ( result ) == expected )