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

Method test_denormal_numbers

numpy/_core/tests/test_function_base.py:439–444  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

437 @pytest.mark.xfail(_is_armhf(),
438 reason="ARMHF/AArch32 platforms seem to FTZ subnormals")
439 def test_denormal_numbers(self):
440 # Regression test for gh-5437. Will probably fail when compiled
441 # with ICC, which flushes denormals to zero
442 for ftype in sctypes['float']:
443 stop = nextafter(ftype(0), ftype(1)) * 5 # A denormal number
444 assert_(any(linspace(0, stop, 10, endpoint=False, dtype=ftype)))
445
446 def test_equivalent_to_arange(self):
447 for j in range(1000):

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
linspaceFunction · 0.90
anyFunction · 0.85

Tested by

no test coverage detected