Ejemplo n.º 1
0
def testListCreation():
    l = ref.scalarList(4, 1.)
    eq_(len(l), 4)
    eq_(l[2], 1.)
Ejemplo n.º 2
0
def testListIteration():
    l = ref.scalarList(4, 1.)
    for i in l:
        eq_(i, 1.)
Ejemplo n.º 3
0
def testListCreationFails():
    l = ref.scalarList(4, 1)
Ejemplo n.º 4
0
def testListCreationFails():
    l=ref.scalarList(4,1)
Ejemplo n.º 5
0
def testListCreation():
    l=ref.scalarList(4,1.)
    eq_(len(l),4)
    eq_(l[2],1.)
Ejemplo n.º 6
0
def testListIteration():
    l=ref.scalarList(4,1.)
    for i in l:
        eq_(i,1.)