def test_quantile_plot_interval_float(floats): q1, q2 = quantile_plot_interval(q=floats) assert q1 == min(floats, 1 - floats) assert q2 == max(floats, 1 - floats)
def test_quantile_plot_interval_tuple(q1, q2): _q1, _q2 = quantile_plot_interval(q=(q1, q2)) assert _q1 == q1 assert _q2 == q2
def test_quantile_plot_interval_str(sigmas): q1, q2 = quantile_plot_interval(q=sigmas[0]) assert q1 == 0.5 - sigmas[1] / 2 assert q2 == 0.5 + sigmas[1] / 2