示例#1
0
def tests_for_hw4_solution2():
    u"""Тесты задачи 2"""
    text = "Proin eget tortor risus."
    assert hw4_solution2.cut_off(text) == "Proin eget tortor risus."
    assert hw4_solution2.cut_off(text, 24) == "Proin eget tortor risus."
    assert hw4_solution2.cut_off(text, 23) == "Proin eget tortor..."
    assert hw4_solution2.cut_off(text, 13) == "Proin eget..."
    assert hw4_solution2.cut_off(text, 6) == "Pro..."
示例#2
0
def tests_for_hw4_solution2():
    u"""Тесты задачи 2"""
    text = "Proin eget tortor risus."
    assert hw4_solution2.cut_off(text) == "Proin eget tortor risus."
    assert hw4_solution2.cut_off(text, 24) == "Proin eget tortor risus."
    assert hw4_solution2.cut_off(text, 23) == "Proin eget tortor..."
    assert hw4_solution2.cut_off(text, 13) == "Proin eget..."
    assert hw4_solution2.cut_off(text, 6) == "Pro..."
示例#3
0
def runner():
    # Starts execution of all solutions
    print INPUT_1, ">>", hw4_solution1.text_analyzer(INPUT_1)
    print INPUT_2, ">>", hw4_solution2.cut_off(INPUT_2,10)
示例#4
0
def runner():
    # Starts execution of all solutions
    print INPUT_1, ">>", hw4_solution1.text_analyzer(INPUT_1)
    print INPUT_2, ">>", hw4_solution2.cut_off(INPUT_2, 10)