MCPcopy
hub / github.com/numpy/numpy / test_multidim_byteswap

Method test_multidim_byteswap

numpy/_core/tests/test_regression.py:728–732  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

726 assert_raises(ValueError, np.convolve, [1], [])
727
728 def test_multidim_byteswap(self):
729 # Ticket #449
730 r = np.array([(1, (0, 1, 2))], dtype="i2,3i2")
731 assert_array_equal(r.byteswap(),
732 np.array([(256, (0, 256, 512))], r.dtype))
733
734 def test_string_NULL(self):
735 # Changeset 3557

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
byteswapMethod · 0.80

Tested by

no test coverage detected