Ejemplo n.º 1
0
def vectors():
    y = es.createvectorstring(3.5,4.5,6.8)
    if y != "3.500000,4.500000,6.800000":
        print("failed",y)
    else:
        print("success1",y)
    z = es.splitvectorstring(y)
    if z[0] != 3.5 or z[1] != 4.5 or round(z[2],1) != 6.8:
        print("failed2",z)
    else:
        print("success2",z)
Ejemplo n.º 2
0
 def testSvar(self):
     y = es.createvectorstring(3.5,4.5,6.8)
     self.failUnless(y == "3.500000,4.500000,6.800000")
     z = es.splitvectorstring(y)
     self.failIf(z[0] != 3.5 or z[1] != 4.5 or round(z[2],1) != 6.8)
Ejemplo n.º 3
0
def splitvectorstring(argv):
  x, y, z = es.splitvectorstring(*argv[3:])
  sv[argv[0]] = x
  sv[argv[1]] = y
  sv[argv[2]] = z
Ejemplo n.º 4
0
 def testSvar(self):
     y = es.createvectorstring(3.5, 4.5, 6.8)
     self.failUnless(y == "3.500000,4.500000,6.800000")
     z = es.splitvectorstring(y)
     self.failIf(z[0] != 3.5 or z[1] != 4.5 or round(z[2], 1) != 6.8)