Example #1
0
 def test6(self):
     sz = 5
     cont = TestModule.DemoContainer(sz)
     p = 0
     for itm in cont:
         self.failUnless(itm.GetVal() == p)
         p += 1
     self.failUnless(p == sz)
Example #2
0
File: test.py Project: ASKCOS/rdkit
 def test5b(self):
   sz = 5
   vect = TestModule.buildSPtrVector(sz)
   self.failUnless(len(vect)==sz)
   p = 0
   for itm in vect:
     self.failUnless(itm.GetVal()==p)
     p+=1
Example #3
0
 def test5b(self):
     sz = 5
     vect = TestModule.buildSPtrVector(sz)
     self.failUnless(len(vect) == sz)
     p = 0
     for itm in vect:
         self.failUnless(itm.GetVal() == p)
         p += 1
Example #4
0
File: test.py Project: ASKCOS/rdkit
 def test5(self):
   sz = 5
   vect = TestModule.buildSPtrVector(sz)
   self.failUnless(len(vect)==sz)
   for i in range(sz):
     self.failUnless(vect[i].GetVal()==i)
Example #5
0
File: test.py Project: ASKCOS/rdkit
 def test3(self):
   obj = TestModule.buildSPtr(3);
   self.failUnless(obj.GetVal()==3)
Example #6
0
 def test5(self):
     sz = 5
     vect = TestModule.buildSPtrVector(sz)
     self.failUnless(len(vect) == sz)
     for i in range(sz):
         self.failUnless(vect[i].GetVal() == i)
Example #7
0
 def test3(self):
     obj = TestModule.buildSPtr(3)
     self.failUnless(obj.GetVal() == 3)
Example #8
0
 def test1(self):
     obj = TestModule.DemoKlass(3)
     self.failUnless(obj.GetVal() == 3)
Example #9
0
 def test2(self):
   obj = TestModule.buildPtr(3)
   self.failUnless(obj.GetVal() == 3)