Exemplo n.º 1
0
def test_gap_two_radii():
    a = Wire(-1, 0, 0.5)
    b = Wire(1, 0, 1)
    assert a.gap_to(b) == approx(0.5)
Exemplo n.º 2
0
def test_gap():
    a = Wire(-1, 0, 0.5)
    b = Wire(1, 0, 0.5)
    assert a.gap_to(b) == approx(1)