MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_equal_inputs

Method test_equal_inputs

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

quantilesFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected