https://github.com/edwardoughton/itmlogic
Tip revision: 1e454e3b4b3c8e24c4bc74ec6c076a2f97d86d23 authored by Edward Oughton on 04 January 2021, 14:27:23 UTC
Update index.rst
Update index.rst
Tip revision: 1e454e3
test_qtile.py
import pytest
from itmlogic.misc.qtile import qtile
def test_qtile(setup_a):
"""
Test the routine for returning the ith entry of a given vector after sorting in
descending order, to obtain user-defined quantile values.
"""
assert qtile(setup_a, 5) == 100
assert qtile(setup_a, 8) == 40
assert qtile(setup_a, 3) == 140