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

Method test_basic

numpy/core/tests/test_numeric.py:2668–2670  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2666 self.real_var = 1
2667
2668 def test_basic(self):
2669 assert_almost_equal(np.var(self.A), self.real_var)
2670 assert_almost_equal(np.std(self.A)**2, self.real_var)
2671
2672 def test_scalars(self):
2673 assert_equal(np.var(1), 0)

Callers

nothing calls this directly

Calls 3

assert_almost_equalFunction · 0.90
varMethod · 0.45
stdMethod · 0.45

Tested by

no test coverage detected