#NEWLINE# def test_set_idx_2d( ) : #NEWLINE# #INDENT# i = 2 #NEWLINE# j = 2 #NEWLINE# for mat in matrices : #NEWLINE# #INDENT# ( mat1 , mat2 ) = ( mat . copy ( ) , mat . copy ( ) ) #NEWLINE# val = ( - mat [ ( i , j ) ] ) #NEWLINE# mat2 [ ( i , j ) ] = val #NEWLINE# expect ( set_idx_2d , [ mat1 , i , j , val ] , mat2 )