Ejemplo n.º 1
0
def test_smallestInt_11():
  assert smallestInt([3,3,3,3])==3
Ejemplo n.º 2
0
def test_smallestInt_09():
  assert smallestInt([6,9,5])==5
Ejemplo n.º 3
0
def test_smallestInt_10():
  assert smallestInt([-3,-2,-1])==-3
Ejemplo n.º 4
0
def test_smallestInt_07():
  assert smallestInt([2,3,4])==2
Ejemplo n.º 5
0
def test_smallestInt_08():
  assert smallestInt([7,6,5])==5
Ejemplo n.º 6
0
def test_smallestInt_06():
  assert smallestInt([1])==1
Ejemplo n.º 7
0
def test_smallestInt_05():
  with pytest.raises(ValueError):
    result= smallestInt([1,2,"foo"])
Ejemplo n.º 8
0
def test_smallestInt_03():
  with pytest.raises(ValueError):
    result= smallestInt(["foo",1,2])
Ejemplo n.º 9
0
def test_smallestInt_02():
  with pytest.raises(ValueError):
    result= smallestInt([])
Ejemplo n.º 10
0
def test_smallestInt_01():
  with pytest.raises(ValueError):
    result= smallestInt("not a list")