예제 #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)