#NEWLINE# def testMatrixBombingPlanExample( self ) : #NEWLINE# #INDENT# m = [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] , [ 7 , 8 , 9 ] ] #NEWLINE# result = { #NEWLINE# #INDENT# ( 0 , 0 ) : 42 , #NEWLINE# ( 0 , 1 ) : 36 , #NEWLINE# ( 0 , 2 ) : 37 , #NEWLINE# ( 1 , 0 ) : 30 , #NEWLINE# ( 1 , 1 ) : 15 , #NEWLINE# ( 1 , 2 ) : 23 , #NEWLINE# ( 2 , 0 ) : 29 , #NEWLINE# ( 2 , 1 ) : 15 , #NEWLINE# ( 2 , 2 ) : 26 , #NEWLINE# #UNINDENT# } #NEWLINE# self . assertEqual ( result , matrix_bombing_plan ( m ) )