MCPcopy Create free account
hub / github.com/numpy/numpy / test_axes

Method test_axes

numpy/lib/tests/test_function_base.py:81–85  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

79 assert_equal(rot90(a, k=1, axes=(1,0)), rot90(a, k=-1, axes=(0,1)))
80
81 def test_axes(self):
82 a = np.ones((50, 40, 3))
83 assert_equal(rot90(a).shape, (40, 50, 3))
84 assert_equal(rot90(a, axes=(0,2)), rot90(a, axes=(0,-1)))
85 assert_equal(rot90(a, axes=(1,2)), rot90(a, axes=(-2,-1)))
86
87 def test_rotation_axes(self):
88 a = np.arange(8).reshape((2,2,2))

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
rot90Function · 0.90

Tested by

no test coverage detected