def tests_for_hw4_solution1(): assert hw4_solution1.percentage_of_characters("ABCda") == { 'a': 40.0, 'b': 20.0, 'c': 20.0, 'd': 20.0 }
def runner(): u"""Запускает выполнение всех задач""" print INPUT_1, ">>", hw4_solution1.percentage_of_characters(INPUT_1) print INPUT_text + ' limit:' + str( INPUT_limit_1), ">>", hw4_solution2.afterword(INPUT_text, INPUT_limit_1) print INPUT_text + ' limit:' + str( INPUT_limit_2), ">>", hw4_solution2.afterword(INPUT_text, INPUT_limit_2) print INPUT_text + ' limit:' + str( INPUT_limit_3), ">>", hw4_solution2.afterword(INPUT_text, INPUT_limit_3) print INPUT_text + ' limit:' + str( INPUT_limit_4), ">>", hw4_solution2.afterword(INPUT_text, INPUT_limit_4)
def tests_for_hw4_solution1(): assert hw4_solution1.percentage_of_characters("ABCda") == {'a': 40.0, 'b': 20.0, 'c': 20.0, 'd': 20.0}