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

Method testAsString

tools/swig/test/testArray.py:352–357  ·  view source on GitHub ↗

Test ArrayZ asString method

(self)

Source from the content-addressed store, hash-verified

350 self.assertRaises(IndexError, self.array3.__getitem__, self.length + 1)
351
352 def testAsString(self):
353 "Test ArrayZ asString method"
354 for i in range(self.array3.length()):
355 self.array3[i] = complex(i + 1, -i - 1)
356 self.assertTrue(self.array3.asString() ==
357 "[ (1,-1), (2,-2), (3,-3), (4,-4), (5,-5) ]")
358
359 def testStr(self):
360 "Test ArrayZ __str__ method"

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected