コード例 #1
0
def test_fmt_vector_list():
    from ezdxf.math import Vec3

    l = [Vec3(), (1.0, 2.0, 3.0)]
    r = list(_fmt_list(l))
    assert r[0] == "(0.0, 0.0, 0.0),"
    assert r[1] == "(1.0, 2.0, 3.0),"
コード例 #2
0
def test_fmt_float_list():
    l = [1., 2., 3.]
    r = list(_fmt_list(l))
    assert r[0] == '1.0,'
    assert r[1] == '2.0,'
    assert r[2] == '3.0,'
コード例 #3
0
def test_fmt_int_list():
    l = [1, 2, 3]
    r = list(_fmt_list(l))
    assert r[0] == '1,'
    assert r[1] == '2,'
    assert r[2] == '3,'
コード例 #4
0
def test_fmt_float_list():
    l = [1.0, 2.0, 3.0]
    r = list(_fmt_list(l))
    assert r[0] == "1.0,"
    assert r[1] == "2.0,"
    assert r[2] == "3.0,"
コード例 #5
0
def test_fmt_int_list():
    l = [1, 2, 3]
    r = list(_fmt_list(l))
    assert r[0] == "1,"
    assert r[1] == "2,"
    assert r[2] == "3,"
コード例 #6
0
def test_fmt_vector_list():
    from ezdxf.math import Vector
    l = [Vector(), (1., 2., 3.)]
    r = list(_fmt_list(l))
    assert r[0] == '(0.0, 0.0, 0.0),'
    assert r[1] == '(1.0, 2.0, 3.0),'