def test_longestString_12(): assert longestString(["wolf","bar","horse","bear","tiger"])=="horse"
def test_longestString_10(): assert longestString(["foo","wolf","bar","bear"])=="wolf"
def test_longestString_11(): assert longestString(["foo","wolf","bar","rabbit","bear"])=="rabbit"
def test_longestString_07(): assert longestString(["foo","bar"])=="foo"
def test_longestString_09(): assert longestString(["foo","bear","bar"])=="bear"
def test_longestString_06(): with pytest.raises(ValueError): result= longestString("foo")
def test_longestString_05(): with pytest.raises(ValueError): result= longestString([1,2,"foo"])
def test_longestString_03(): with pytest.raises(ValueError): result= longestString(["foo",1,2])
def test_longestString_02(): with pytest.raises(ValueError): result= longestString([])
def test_longestString_01(): with pytest.raises(ValueError): result= longestString("not a list")