Esempio n. 1
0
 def test_positive(self):
     self.assertEqual(minimum_scalar_product([1, 2, 3, 4, 5], [1, 0, 1, 0, 1]), 6)
Esempio n. 2
0
 def test_negative(self):
     self.assertEqual(minimum_scalar_product([1, 3, -5], [-2, 4, 1]), -25)