示例#1
0
def test_point_distance_squared_to_other():
    p = Point()
    q = Point(2, 0)
    assert p.distance_squared(q) == 4
示例#2
0
def test_point_distance_squared_to_self():
    p = Point()
    assert p.distance_squared(p) == 0