Пример #1
0
 def testPassListAsVectorOfNoDefaultConstructor(self):
   res0 = t2.pass_list_as_vector_of_no_default_constructor([])
   self.assertEqual(res0, 13)
   res3 = t2.pass_list_as_vector_of_no_default_constructor(
       [t2.make_ndefctor(i) for i in [3, -5, 7]])
   self.assertEqual(res3, 18)
Пример #2
0
 def testReturnNoDefaultConstructor(self):
   self.assertIsInstance(t2.make_ndefctor(1), t2.NoDefaultConstructor)