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

Method test_equivalent_to_arange

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

Source from the content-addressed store, hash-verified

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):
409 assert_equal(linspace(0, j, j+1, dtype=int),
410 arange(j+1, dtype=int))
411
412 def test_retstep(self):
413 for num in [0, 1, 2]:

Callers

nothing calls this directly

Calls 3

assert_equalFunction · 0.90
linspaceFunction · 0.90
arangeFunction · 0.90

Tested by

no test coverage detected