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

Method test_corner

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

Source from the content-addressed store, hash-verified

293 assert_raises(ValueError, linspace, 0, 10, num=-1)
294
295 def test_corner(self):
296 y = list(linspace(0, 1, 1))
297 assert_(y == [0.0], y)
298 assert_raises(TypeError, linspace, 0, 1, num=2.5)
299
300 def test_type(self):
301 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