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

Method test_denormal_numbers

numpy/core/tests/test_function_base.py:400–405  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

398 assert_equal(linspace(one, five), linspace(1, 5))
399
400 def test_denormal_numbers(self):
401 # Regression test for gh-5437. Will probably fail when compiled
402 # with ICC, which flushes denormals to zero
403 for ftype in sctypes['float']:
404 stop = nextafter(ftype(0), ftype(1)) * 5 # A denormal number
405 assert_(any(linspace(0, stop, 10, endpoint=False, dtype=ftype)))
406
407 def test_equivalent_to_arange(self):
408 for j in range(1000):

Callers

nothing calls this directly

Calls 3

assert_Function · 0.90
linspaceFunction · 0.90
anyFunction · 0.50

Tested by

no test coverage detected