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

Method test_basic

numpy/core/tests/test_getlimits.py:86–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

84
85class TestIinfo:
86 def test_basic(self):
87 dts = list(zip(['i1', 'i2', 'i4', 'i8',
88 'u1', 'u2', 'u4', 'u8'],
89 [np.int8, np.int16, np.int32, np.int64,
90 np.uint8, np.uint16, np.uint32, np.uint64]))
91 for dt1, dt2 in dts:
92 assert_iinfo_equal(iinfo(dt1), iinfo(dt2))
93
94 assert_raises(ValueError, iinfo, 'f4')
95
96 def test_unsigned_max(self):
97 types = np.sctypes['uint']

Callers

nothing calls this directly

Calls 3

iinfoClass · 0.90
assert_raisesFunction · 0.90
assert_iinfo_equalFunction · 0.85

Tested by

no test coverage detected