MCPcopy
hub / github.com/numpy/numpy / test_void_copyswap

Method test_void_copyswap

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

Source from the content-addressed store, hash-verified

524 assert_equal(np.array([]).dtype, np.zeros(0).dtype)
525
526 def test_void_copyswap(self):
527 dt = np.dtype([('one', '<i4'), ('two', '<i4')])
528 x = np.array((1, 2), dtype=dt)
529 x = x.byteswap()
530 assert_(x['one'] > 1 and x['two'] > 2)
531
532 def test_method_args(self):
533 # Make sure methods and functions have same default axis

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
byteswapMethod · 0.80
dtypeMethod · 0.45

Tested by

no test coverage detected