"""Sample solutions for the pytest worksheet."""

from underperformers import collect_underperformers


# Note: this test suite does not contain a complete set of test cases.

def test_underperformers_low_threshold():
    """Test collect_underperformers with a threshold for which there are
    no underperformers.

    """

    actual = collect_underperformers([4, 5, 6], 1)
    expected = []
    assert actual == expected


def test_underperformers_high_threshold():
    """Test collect_underperformers with a threshold for which all items
    are underperformers.

    """

    actual = collect_underperformers([4, 5, 6], 10)
    expected = [4, 5, 6]
    assert actual == expected


# many more test functions are needed here

def test_underperformers_mutation():
    """Confirm that collect_underperformers does not mutate the input
    list.

    """

    arg_lst = [4, 5, 6]
    exp_lst = [4, 5, 6]
    collect_underperformers(arg_lst, 5)
    assert arg_lst == exp_lst
