def test_indexOfSmallestInt_13():
    assert indexOfSmallestInt([-3, -5, -1]) == 1
def test_indexOfSmallestInt_14():
    assert indexOfSmallestInt([-3, -5, -1, -8]) == 3
def test_indexOfSmallestInt_11():
    assert indexOfSmallestInt([2, 3, 3, 3]) == 0
def test_indexOfSmallestInt_12():
    assert indexOfSmallestInt([2, 1, 1, 3]) == 1
def test_indexOfSmallestInt_09():
    assert indexOfSmallestInt([6, 9, 5]) == 2
def test_indexOfSmallestInt_10():
    assert indexOfSmallestInt([-3, -2, -1]) == 0
def test_indexOfSmallestInt_07():
    assert indexOfSmallestInt([2, 3, 4]) == 0
def test_indexOfSmallestInt_08():
    assert indexOfSmallestInt([7, 6, 5]) == 2
def test_indexOfSmallestInt_06():
    assert indexOfSmallestInt([1]) == 0
Exemplo n.º 10
0
def test_indexOfSmallestInt_05():
    with pytest.raises(ValueError):
        result = indexOfSmallestInt([1, 2, "foo"])
Exemplo n.º 11
0
def test_indexOfSmallestInt_03():
    with pytest.raises(ValueError):
        result = indexOfSmallestInt(["foo", 1, 2])
Exemplo n.º 12
0
def test_indexOfSmallestInt_02():
    with pytest.raises(ValueError):
        result = indexOfSmallestInt([])
Exemplo n.º 13
0
def test_indexOfSmallestInt_01():
    with pytest.raises(ValueError):
        result = indexOfSmallestInt("not a list")