Skip to content

Commit fb44ee4

Browse files
authored
add a test for full function (nv-legate#1047)
* Update test_array_creation.py
1 parent 0330a98 commit fb44ee4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/integration/test_array_creation.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,13 @@ def test_full(value):
106106
assert xf.dtype == yf.dtype
107107

108108

109+
def test_full_overflow_uint8() -> None:
110+
with pytest.raises(OverflowError):
111+
num.full((2, 2), 300, dtype="uint8")
112+
with pytest.raises(OverflowError):
113+
np.full((2, 2), 300, dtype="uint8")
114+
115+
109116
SHAPES_NEGATIVE = [-1, (-1, 2, 3), np.array([2, -3, 4])]
110117

111118

0 commit comments

Comments
 (0)