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

Method test_swapaxes

numpy/ma/tests/test_old_ma.py:899–904  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

897 assert_(eq(mX.ptp(1), rows))
898
899 def test_swapaxes(self):
900 _, _, _, _, _, mX, mXX = self._create_data()
901 mXswapped = mX.swapaxes(0, 1)
902 assert_(eq(mXswapped[-1], mX[:, -1]))
903 mXXswapped = mXX.swapaxes(0, 2)
904 assert_equal(mXXswapped.shape, (2, 2, 3, 3))
905
906 def test_cumprod(self):
907 mX = self._create_data()[5]

Callers

nothing calls this directly

Calls 4

_create_dataMethod · 0.95
assert_Function · 0.90
assert_equalFunction · 0.90
eqFunction · 0.85

Tested by

no test coverage detected