Esempio n. 1
0
def runner():
    """Starts execution of all tasks"""
    print INPUT_1, ">>\n", hw4_solution1.percentage_1(INPUT_1)

    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 10)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 15)
Esempio n. 2
0
def runner():
    """Starts execution of all tasks"""
    print INPUT_1, ">>\n", hw4_solution1.percentage_1(INPUT_1)

    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 10)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 15)
Esempio n. 3
0
def tests_for_hw4_solution2():
    u"""Тесты задачи 2"""
    text = "Proin eget tortor risus."
    assert hw4_solution2.ellipsis_1(text) == "Proin eget tortor risus."
    assert hw4_solution2.ellipsis_1(text, 24) == "Proin eget tortor risus."
    assert hw4_solution2.ellipsis_1(text, 23) == "Proin eget tortor..."
    assert hw4_solution2.ellipsis_1(text, 13) == "Proin eget..."
    assert hw4_solution2.ellipsis_1(text, 6) == "Pro..."
Esempio n. 4
0
def runner():
    u"""Запускает выполнение всех задач"""
    print INPUT_1, ">>\n", hw4_solution1.percentage_1(INPUT_1)
    print INPUT_1, ">>\n", hw4_solution1.percentage_2(INPUT_1)

    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 10)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 15)
Esempio n. 5
0
def runner():
    u"""Запускает выполнение всех задач"""
    print "======== STARTER.PY ================================"
    print "___ function percentage_1 ____"
    print INPUT_1, ">>\n", hw4_solution1.percentage_1(INPUT_1)
    print "___ function percentage_2 ____"
    print INPUT_1, ">>\n", hw4_solution1.percentage_2(INPUT_1)

    print "___ function ellipsis_1 ____"
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 10)
    print INPUT_2, ">>\n", hw4_solution2.ellipsis_1(INPUT_2, 15)