示例#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")