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)
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)
def splitvectorstring(argv): x, y, z = es.splitvectorstring(*argv[3:]) sv[argv[0]] = x sv[argv[1]] = y sv[argv[2]] = z
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)