def test_distance_diag(): a = Wire(-1, -1, 0.5) b = Wire(1, 1, 0.5) assert a.distance_to(b) == approx(np.sqrt(8))
def test_distance(): a = Wire(-1, 0, 0.5) b = Wire(1, 0, 0.5) assert a.distance_to(b) == approx(2.0)