def test_compute_diff(self):
     self.assertEqual(cross.compute_diff([1, 1, 1], [0, 1, 2]), [1, 0, -1])
     self.assertEqual(cross.compute_diff([0, 1, 2], [1, 1, 1]), [-1, 0, 1])
示例#2
0
 def test_compute_diff(self):
     self.assertEqual(cross.compute_diff([1, 1, 1], [0, 1, 2]), [1, 0, -1])
     self.assertEqual(cross.compute_diff([0, 1, 2], [1, 1, 1]), [-1, 0, 1])