Exemplo n.º 1
0
 def test_euclidean_dist2(self, p, q):
     assert euclidean_dist(p, q) == euclidean_dist(q, p)
Exemplo n.º 2
0
 def test_euclidean_dist3(self, p):
     assert euclidean_dist(p, p) == 0
Exemplo n.º 3
0
 def test_euclidean_dist1(self, p, q):
     dist = euclidean_dist(p, q)
     assert_almost_equal(dist, 13.2665, decimal=4)