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

Method test_multidim_byteswap

numpy/core/tests/test_regression.py:715–719  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

713 assert_raises(ValueError, np.convolve, [1], [])
714
715 def test_multidim_byteswap(self):
716 # Ticket #449
717 r = np.array([(1, (0, 1, 2))], dtype="i2,3i2")
718 assert_array_equal(r.byteswap(),
719 np.array([(256, (0, 256, 512))], r.dtype))
720
721 def test_string_NULL(self):
722 # Changeset 3557

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
byteswapMethod · 0.80

Tested by

no test coverage detected