from typing import List


def _contains(n: float, range_: List[float]) -> bool:
    """
    Test that n is within range (ends included). Order of range entries doesn't
    matter.

    :param n: Value to check.
    :param range_: Start and end of the range to check.
    :type n: float
    :type range_: list(float, float)
    :return: True if value is inside range, False otherwise
    :rtype: bool
    """
    a, b = range_
    if b < a:
        a, b = b, a
    return (n >= a) and (n <= b)