def tests_for_web4_dz2(): """Тесты задачи 2""" text = "Proin eget tortor risus." assert web4_dz2.epilogue(text) == "Proin eget tortor risus." assert web4_dz2.epilogue(text, 24) == "Proin eget tortor risus." assert web4_dz2.epilogue(text, 23) == "Proin eget tortor..." assert web4_dz2.epilogue(text, 13) == "Proin eget..." assert web4_dz2.epilogue(text, 6) == "Pro..."
def runner(): """Запускает выполненние всех задач""" print(INPUT_1, ">>\n", web4_dz1.frequency_letters(INPUT_1)) print(INPUT_2, ">>\n", web4_dz2.epilogue(INPUT_2))