MCPcopy
hub / github.com/numpy/numpy / test_corner

Method test_corner

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

Source from the content-addressed store, hash-verified

329 assert_raises(ValueError, linspace, 0, 10, num=-1)
330
331 def test_corner(self):
332 y = list(linspace(0, 1, 1))
333 assert_(y == [0.0], y)
334 assert_raises(TypeError, linspace, 0, 1, num=2.5)
335
336 def test_type(self):
337 t1 = linspace(0, 1, 0).dtype

Callers

nothing calls this directly

Calls 3

linspaceFunction · 0.90
assert_Function · 0.90
assert_raisesFunction · 0.90

Tested by

no test coverage detected