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