MCPcopy Index your code
hub / github.com/numpy/numpy / test_swap_real

Method test_swap_real

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

Source from the content-addressed store, hash-verified

505 pickle.dumps(float, protocol=proto)
506
507 def test_swap_real(self):
508 # Ticket #265
509 assert_equal(np.arange(4, dtype='>c8').imag.max(), 0.0)
510 assert_equal(np.arange(4, dtype='<c8').imag.max(), 0.0)
511 assert_equal(np.arange(4, dtype='>c8').real.max(), 3.0)
512 assert_equal(np.arange(4, dtype='<c8').real.max(), 3.0)
513
514 def test_object_array_from_list(self):
515 # Ticket #270 (gh-868)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
maxMethod · 0.45

Tested by

no test coverage detected