Esempio n. 1
0
def test_update_xy(v: Vector, x: float, y: float):
    assert v.update(x=x, y=y) == (x, y)
Esempio n. 2
0
def test_update_x(v: Vector, x: float):
    assert v.update(x=x) == (x, v.y)
Esempio n. 3
0
def test_update_y(v: Vector, y: float):
    assert v.update(y=y) == (v.x, y)