Ejemplo n.º 1
0
def test_points():
    [ps] = points(3, 1, 2)
    assert len(ps) == 3
    assert all(p.x == 1 for p in ps)
    assert all(p.y == 2 for p in ps)
Ejemplo n.º 2
0
def test_points():
    from simple import points
    [ps] = points(3, 1, 2)
    assert len(ps) == 3
    assert all(p.x == 1 for p in ps)
    assert all(p.y == 2 for p in ps)