MCPcopy Index your code
hub / github.com/python/cpython / test_equal_inputs

Method test_equal_inputs

Lib/test/test_statistics.py:2647–2653  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2645 self.assertEqual(quantiles([10], n=4, method='exclusive'), [10.0, 10.0, 10.0])
2646
2647 def test_equal_inputs(self):
2648 quantiles = statistics.quantiles
2649 for n in range(2, 10):
2650 data = [10.0] * n
2651 self.assertEqual(quantiles(data), [10.0, 10.0, 10.0])
2652 self.assertEqual(quantiles(data, method='inclusive'),
2653 [10.0, 10.0, 10.0])
2654
2655 def test_equal_sized_groups(self):
2656 quantiles = statistics.quantiles

Callers

nothing calls this directly

Calls 2

quantilesFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected