Test threes function
(self)
| 242 | |
| 243 | # Test the (int DIM1, type* ARGOUT_ARRAY1) typemap |
| 244 | def testThrees(self): |
| 245 | "Test threes function" |
| 246 | print(self.typeStr, "... ", end=' ', file=sys.stderr) |
| 247 | threes = Vector.__dict__[self.typeStr + "Threes"] |
| 248 | vector = threes(6) |
| 249 | self.assertEqual((vector == [3, 3, 3, 3, 3, 3]).all(), True) |
| 250 | |
| 251 | # Test the (type* ARGOUT_ARRAY1, int DIM1) typemap |
| 252 | def testThreesNonInt(self): |