Exemplo n.º 1
0
def runner():
    u"""Запускает выполнение всех задач"""
    print INPUT_TEXT, ">>", hw4_solutions1.freq_letter(INPUT_TEXT)
    print
    print INPUT_TEXT, "; limit = ", INPUT_2_limit, ">>",
    print hw4_solutions2.afterword(INPUT_TEXT, INPUT_2_limit)
Exemplo n.º 2
0
def tests_for_hw4_solution2(IN_TEXT):
    u"""Набор тестов для решения задачи 2 ДЗ#4"""
    assert hw4_solutions2.afterword(IN_TEXT, 24) == "Proin eget tortor risus."
    assert hw4_solutions2.afterword(IN_TEXT, 23) == "Proin eget tortor..."
    assert hw4_solutions2.afterword(IN_TEXT, 13) == "Proin eget..."
    assert hw4_solutions2.afterword(IN_TEXT, 6) == "Pro..."
Exemplo n.º 3
0
def runner():
    u"""Запускает выполнение всех задач"""
    print INPUT_TEXT, ">>", hw4_solutions1.freq_letter(INPUT_TEXT)
    print
    print INPUT_TEXT, "; limit = ", INPUT_2_limit, ">>",
    print hw4_solutions2.afterword(INPUT_TEXT, INPUT_2_limit)
Exemplo n.º 4
0
def tests_for_hw4_solution2(IN_TEXT):
    u"""Набор тестов для решения задачи 2 ДЗ#4"""
    assert hw4_solutions2.afterword(IN_TEXT, 24) == "Proin eget tortor risus."
    assert hw4_solutions2.afterword(IN_TEXT, 23) == "Proin eget tortor..."
    assert hw4_solutions2.afterword(IN_TEXT, 13) == "Proin eget..."
    assert hw4_solutions2.afterword(IN_TEXT, 6) == "Pro..."