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

Method test_floats

numpy/_core/tests/test_abc.py:20–29  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18 assert_(issubclass(np.unsignedinteger, numbers.Integral))
19
20 def test_floats(self):
21 for t in sctypes['float']:
22 assert_(isinstance(t(), numbers.Real),
23 f"{t.__name__} is not instance of Real")
24 assert_(issubclass(t, numbers.Real),
25 f"{t.__name__} is not subclass of Real")
26 assert_(not isinstance(t(), numbers.Rational),
27 f"{t.__name__} is instance of Rational")
28 assert_(not issubclass(t, numbers.Rational),
29 f"{t.__name__} is subclass of Rational")
30
31 def test_complex(self):
32 for t in sctypes['complex']:

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
tFunction · 0.85

Tested by

no test coverage detected