MCPcopy Create free account
hub / github.com/numpy/numpy / testThrees

Method testThrees

tools/swig/test/testVector.py:243–248  ·  view source on GitHub ↗

Test threes function

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

printFunction · 0.85
allMethod · 0.45

Tested by

no test coverage detected