예제 #1
0
 def test_gradient_empty(self):
     self.assertEqual((0.1, 0.2, 0.3),
                      objgraph._gradient((0.1, 0.2, 0.3), (0.2, 0.3, 0.4),
                                         0, 0))
예제 #2
0
 def test_gradient_empty(self):
     self.assertEqual((0.1, 0.2, 0.3),
                      objgraph._gradient((0.1, 0.2, 0.3),
                                         (0.2, 0.3, 0.4), 0, 0))