MCPcopy
hub / github.com/numpy/numpy / test_basic

Method test_basic

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

Source from the content-addressed store, hash-verified

320class TestLinspace:
321
322 def test_basic(self):
323 y = linspace(0, 10)
324 assert_(len(y) == 50)
325 y = linspace(2, 10, num=100)
326 assert_(y[-1] == 10)
327 y = linspace(2, 10, endpoint=False)
328 assert_(y[-1] < 10)
329 assert_raises(ValueError, linspace, 0, 10, num=-1)
330
331 def test_corner(self):
332 y = list(linspace(0, 1, 1))

Callers

nothing calls this directly

Calls 3

linspaceFunction · 0.90
assert_Function · 0.90
assert_raisesFunction · 0.90

Tested by

no test coverage detected