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

Method test_swap_real

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

Source from the content-addressed store, hash-verified

489 pickle.dumps(float, protocol=proto)
490
491 def test_swap_real(self):
492 # Ticket #265
493 assert_equal(np.arange(4, dtype='>c8').imag.max(), 0.0)
494 assert_equal(np.arange(4, dtype='<c8').imag.max(), 0.0)
495 assert_equal(np.arange(4, dtype='>c8').real.max(), 3.0)
496 assert_equal(np.arange(4, dtype='<c8').real.max(), 3.0)
497
498 def test_object_array_from_list(self):
499 # Ticket #270 (gh-868)

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
maxMethod · 0.45

Tested by

no test coverage detected