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

Method test_basic

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

Source from the content-addressed store, hash-verified

43class TestLogspace:
44
45 def test_basic(self):
46 y = logspace(0, 6)
47 assert_(len(y) == 50)
48 y = logspace(0, 6, num=100)
49 assert_(y[-1] == 10 ** 6)
50 y = logspace(0, 6, endpoint=False)
51 assert_(y[-1] < 10 ** 6)
52 y = logspace(0, 6, num=7)
53 assert_array_equal(y, [1, 10, 100, 1e3, 1e4, 1e5, 1e6])
54
55 def test_start_stop_array(self):
56 start = array([0., 1.])

Callers

nothing calls this directly

Calls 3

logspaceFunction · 0.90
assert_Function · 0.90
assert_array_equalFunction · 0.90

Tested by

no test coverage detected