https://github.com/edwardoughton/itmlogic
Raw File
Tip revision: 3d593fc1c4df44da47f65b1a9c1981e58fe6b4b0 authored by Tom Russell on 09 September 2021, 16:32:14 UTC
Compare hard-coded to measured distance and terrain profile
Tip revision: 3d593fc
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
back to top