MCPcopy Index your code
hub / github.com/numpy/numpy / testStr

Method testStr

tools/swig/test/testArray.py:359–363  ·  view source on GitHub ↗

Test ArrayZ __str__ method

(self)

Source from the content-addressed store, hash-verified

357 "[ (1,-1), (2,-2), (3,-3), (4,-4), (5,-5) ]")
358
359 def testStr(self):
360 "Test ArrayZ __str__ method"
361 for i in range(self.array3.length()):
362 self.array3[i] = complex(i - 2, (i - 2) * 2)
363 self.assertTrue(str(self.array3) == "[ (-2,-4), (-1,-2), (0,0), (1,2), (2,4) ]")
364
365 def testView(self):
366 "Test ArrayZ view method"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected