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

Method test_byteorder

numpy/core/tests/test_multiarray.py:5177–5179  ·  view source on GitHub ↗
(self, dtype)

Source from the content-addressed store, hash-verified

5175
5176 @pytest.mark.parametrize('dtype', ('>i4', '<i4'))
5177 def test_byteorder(self, dtype):
5178 x = np.array([1, 2, 3], dtype)
5179 assert_array_equal(x.take([0, 2, 1]), [1, 3, 2])
5180
5181 def test_record_array(self):
5182 # Note mixed byteorder.

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
takeMethod · 0.80

Tested by

no test coverage detected