예제 #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]) == []