Пример #1
0
def test_to_2d_coords_3points():
    assert np.array_equal(to_2d_coords(((2, 3, 4), (3, 4, 5), (5, 6, 7))),
                          ((2, 3), (3, 4), (5, 6)))
Пример #2
0
def test_to_2d_coords_3points():
    assert np.array_equal(to_2d_coords(((2, 3, 4), (3, 4, 5), (5, 6, 7))),
                                       ((2, 3), (3, 4), (5, 6))
                          )
Пример #3
0
def test_to_2d_coords_3point():
    assert np.array_equal(to_2d_coords((2, 3, 4)), ((2.0, 3.0), ))
Пример #4
0
def test_to_2d_coords_3point():
    assert np.array_equal(to_2d_coords((2, 3, 4)), ((2.0, 3.0),))