Exemplo n.º 1
0
def test_longestString_12():
  assert longestString(["wolf","bar","horse","bear","tiger"])=="horse"  
Exemplo n.º 2
0
def test_longestString_10():
  assert longestString(["foo","wolf","bar","bear"])=="wolf"  
Exemplo n.º 3
0
def test_longestString_11():
  assert longestString(["foo","wolf","bar","rabbit","bear"])=="rabbit"
Exemplo n.º 4
0
def test_longestString_07():
  assert longestString(["foo","bar"])=="foo"
Exemplo n.º 5
0
def test_longestString_09():
  assert longestString(["foo","bear","bar"])=="bear"  
Exemplo n.º 6
0
def test_longestString_06():
  with pytest.raises(ValueError):
    result= longestString("foo")
Exemplo n.º 7
0
def test_longestString_05():
  with pytest.raises(ValueError):
    result= longestString([1,2,"foo"])
Exemplo n.º 8
0
def test_longestString_03():
  with pytest.raises(ValueError):
    result= longestString(["foo",1,2])
Exemplo n.º 9
0
def test_longestString_02():
  with pytest.raises(ValueError):
    result= longestString([])
Exemplo n.º 10
0
def test_longestString_01():
  with pytest.raises(ValueError):
    result= longestString("not a list")