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

Method test_check_large_integers

numpy/lib/tests/test_arraypad.py:641–652  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

639 assert_allclose(test, expected)
640
641 def test_check_large_integers(self):
642 uint64_max = 2 ** 64 - 1
643 arr = np.full(5, uint64_max, dtype=np.uint64)
644 test = np.pad(arr, 1, mode="constant", constant_values=arr.min())
645 expected = np.full(7, uint64_max, dtype=np.uint64)
646 assert_array_equal(test, expected)
647
648 int64_max = 2 ** 63 - 1
649 arr = np.full(5, int64_max, dtype=np.int64)
650 test = np.pad(arr, 1, mode="constant", constant_values=arr.min())
651 expected = np.full(7, int64_max, dtype=np.int64)
652 assert_array_equal(test, expected)
653
654 def test_check_object_array(self):
655 arr = np.empty(1, dtype=object)

Callers

nothing calls this directly

Calls 2

assert_array_equalFunction · 0.90
minMethod · 0.45

Tested by

no test coverage detected