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

Method testReverse

tools/swig/test/testVector.py:116–122  ·  view source on GitHub ↗

Test reverse function

(self)

Source from the content-addressed store, hash-verified

114
115 # Test the (type INPLACE_ARRAY1[ANY]) typemap
116 def testReverse(self):
117 "Test reverse function"
118 print(self.typeStr, "... ", end=' ', file=sys.stderr)
119 reverse = Vector.__dict__[self.typeStr + "Reverse"]
120 vector = np.array([1, 2, 4], self.typeCode)
121 reverse(vector)
122 self.assertEqual((vector == [4, 2, 1]).all(), True)
123
124 # Test the (type INPLACE_ARRAY1[ANY]) typemap
125 def testReverseWrongDim(self):

Callers

nothing calls this directly

Calls 1

allMethod · 0.45

Tested by

no test coverage detected