I am running a test rowcol basically multiplying the row and column to get the out come to see if it is equal to the original. I did this on paper how matrices are done. But when i run it it always says the the assertion error is not equal. I've double checked everything to make sure no extra indention no extra numbers or anything. Can anyone help me out? A fresh pair of eyes should help!
code: def test_rowcol_product_1( self ): """ Row col product """ row = [4,5,6] col = [3,7,11] self.assertEqual( rowcol_product(row, col), 4*3 + 5*7 + 6*11 )
error i receive: self.assertEqual( rowcol_product(row, col), 4*3 + 5*7 + 6*11 ) AssertionError: None != 113
Aucun commentaire:
Enregistrer un commentaire