def test_simple_test_2(): assert (euclid([1, 2], [5, -1]) == approx(5))
def test_euclid(): p = [2, 3, -1] q = [4, 1, -2] dist = euclid(p, q) assert (approx(dist) == 3)
def test_simple_test(): assert (euclid([1, 1], [1, 1]) == approx(0))
def test_euclid(): a = [0, 0, 0] b = [4, 4, 4] dist = euclid(a, b) assert (math.sqrt(48.) == approx(dist))