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