MCPcopy
hub / github.com/numpy/numpy / testThrees

Method testThrees

tools/swig/test/testVector.py:244–249  ·  view source on GitHub ↗

Test threes function

(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected