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

Method test_basic

numpy/_core/tests/test_getlimits.py:62–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

60
61class TestFinfo:
62 def test_basic(self):
63 dts = list(zip(['f2', 'f4', 'f8', 'c8', 'c16'],
64 [np.float16, np.float32, np.float64, np.complex64,
65 np.complex128]))
66 for dt1, dt2 in dts:
67 assert_finfo_equal(finfo(dt1), finfo(dt2))
68
69 assert_raises(ValueError, finfo, 'i4')
70
71 def test_regression_gh23108(self):
72 # np.float32(1.0) and np.float64(1.0) have the same hash and are

Callers

nothing calls this directly

Calls 3

finfoClass · 0.90
assert_raisesFunction · 0.90
assert_finfo_equalFunction · 0.85

Tested by

no test coverage detected