def test_percentiles(): values = [3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20] get_percentile(values, 0.25) == 7 get_percentile(values, 0.50) == 9 get_percentile(values, 0.75) == 15 get_percentile(values, 1.00) == 20
def test_percentiles(): values = [3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20] get_percentile(values, 0.25) == 7 get_percentile(values, 0.50) == 9 get_percentile(values, 0.75) == 15 get_percentile(values, 1.00) == 20
def test_percentiles(): values = [3, 6, 7, 8, 8, 9, 10, 13, 15, 16, 20] assert get_percentile([], 0.25) == 0 assert get_percentile([], 1) == 0 assert get_percentile(values, 0.25) == 7 assert get_percentile(values, 0.50) == 9 assert get_percentile(values, 0.75) == 15 assert get_percentile(values, 1.00) == 20