示例#1
0
def wrap_line(line):
    return wrap.wrap_line(line)
示例#2
0
def wrap_line(line):
    return wrap.wrap_line(line)
示例#3
0
文件: test.py 项目: Fandekasp/Katas
def test_word_gt_colmax():
    text = "c" * 8
    assert wrap_line(text) == "c" * 7 + "\nc"
示例#4
0
文件: test.py 项目: Fandekasp/Katas
def test_wrap_line():
    text = "bob"
    assert wrap_line(text) == "bob2"
示例#5
0
文件: test.py 项目: Fandekasp/Katas
def test_1_split_longer():
    text = "thisisbiggerbutthis iscool"
    print wrap_line(text)
    assert wrap_line(text) == "thisisb\niggerbu\ntthis\niscool"
示例#6
0
文件: test.py 项目: Fandekasp/Katas
def test_1_split():
    text = "this iscool"
    assert wrap_line(text) == "this\niscool"