Exemple #1
0
def test_spacedString_9():
    assert spacedString(" A ", 1) == "  A  "
Exemple #2
0
def test_spacedString_10():
    assert spacedString("X X", 1) == "X   X"
Exemple #3
0
def test_spacedString_7():
    assert spacedString("U", 1) == "U"
Exemple #4
0
def test_spacedString_8():
    assert spacedString("UC", 1) == "U C"
Exemple #5
0
def test_spacedString_5():
    with pytest.raises(ValueError):
        result = spacedString(["not a string"], 0)
Exemple #6
0
def test_spacedString_6():
    with pytest.raises(ValueError):
        result = spacedString("A String", "Not an int")
Exemple #7
0
def test_spacedString_4():
    with pytest.raises(ValueError):
        result = spacedString("UCSD", -1)
Exemple #8
0
def test_spacedString_3():
    assert spacedString("UCSD", 0) == "UCSD"
Exemple #9
0
def test_spacedString_2():
    assert spacedString("Cal Poly", 2) == "C  a  l     P  o  l  y"
Exemple #10
0
def test_spacedString_1():
    assert spacedString("UCSB", 1) == "U C S B"
Exemple #11
0
def test_spacedString_0():
    assert spacedString("", 1) == ""