(self)
| 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) |
nothing calls this directly
no test coverage detected