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