示例#1
0
def test_indicesOfEvens_1():
    assert indicesOfEvens([11, 20, 35, 44, 57, 63, 42]) == [1, 3, 6]
示例#2
0
def test_indicesOfEvens_7():
    with pytest.raises(ValueError):
        result = indicesOfEvens([4, 5, "bar"])
示例#3
0
def test_indicesOfEvens_0():
    assert indicesOfEvens([]) == []
示例#4
0
def test_indicesOfEvens_6():
    with pytest.raises(ValueError):
        result = indicesOfEvens("foo")
示例#5
0
def test_indicesOfEvens_5():
    assert indicesOfEvens([4, 3, 4, 6]) == [0, 2, 3]
示例#6
0
def test_indicesOfEvens_4():
    assert indicesOfEvens([3, 4, 6]) == [1, 2]
示例#7
0
def test_indicesOfEvens_3():
    assert indicesOfEvens([3, 4, 5]) == [1]
示例#8
0
def test_indicesOfEvens_2():
    assert indicesOfEvens([3, 5, 7, 9]) == []