# Path: metatlas/plots/utils.py
# BACKGROUND_COLORS = ["white", "lightyellow", "whitesmoke", "lavenderblush"]
# def colors() -> Generator:
# def subplot_dimensions(num: int) -> Tuple[int, int]:
# def wrap_subplots(num: int, **kwargs) -> Tuple[matplotlib.figure.Figure, List[matplotlib.axes.Axes]]:
# def is_in_range(a: List[float], start: float, stop: float) -> List[bool]:
# def fill_under(
#     ax: matplotlib.axes.Axes,
#     x: List[float],
#     y: List[float],
#     between: Optional[Tuple[float, float]] = None,
#     **kwargs,
# ) -> None:
# def pdf_with_text(text: str, file_name: str, size: int = 24):


from metatlas.plots import utils
"""Test of plotting utility functions"""
# pylint: disable=missing-function-docstring



def test_is_in_range():
    assert utils.is_in_range([0, 1, 2], 1, 1) == [False, True, False]
    assert utils.is_in_range([], 1, 1) == []

# Path: metatlas/plots/utils.py
# BACKGROUND_COLORS = ["white", "lightyellow", "whitesmoke", "lavenderblush"]
# def colors() -> Generator:
# def subplot_dimensions(num: int) -> Tuple[int, int]:
# def wrap_subplots(num: int, **kwargs) -> Tuple[matplotlib.figure.Figure, List[matplotlib.axes.Axes]]:
# def is_in_range(a: List[float], start: float, stop: float) -> List[bool]:
# def fill_under(
#     ax: matplotlib.axes.Axes,
#     x: List[float],
#     y: List[float],
#     between: Optional[Tuple[float, float]] = None,
#     **kwargs,
# ) -> None:
# def pdf_with_text(text: str, file_name: str, size: int = 24):


# Path: tests/unit/test_plot_utils.py
from metatlas.plots import utils

"""Test of plotting utility functions"""
# pylint: disable=missing-function-docstring



def test_is_in_range():
    assert utils.is_in_range([0, 1, 2], 1, 1) == [False, True, False]
    assert utils.is_in_range([], 1, 1) == []

    assert utils.is_in_range([5], 1, 1) == [False]