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

Method test_basic

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

Source from the content-addressed store, hash-verified

69class TestLogspace:
70
71 def test_basic(self):
72 y = logspace(0, 6)
73 assert_(len(y) == 50)
74 y = logspace(0, 6, num=100)
75 assert_(y[-1] == 10 ** 6)
76 y = logspace(0, 6, endpoint=False)
77 assert_(y[-1] < 10 ** 6)
78 y = logspace(0, 6, num=7)
79 assert_array_equal(y, [1, 10, 100, 1e3, 1e4, 1e5, 1e6])
80
81 def test_start_stop_array(self):
82 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