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