コード例 #1
0
ファイル: hw2_tests.py プロジェクト: sdeath666/homeworks
def tests_for_hw2_solution2():
    u"""Набор тестов для решения задачи 2 ДЗ#2"""
    assert hw2_solution2.symmetry_1("abba")
    assert hw2_solution2.symmetry_1("abrbrba")
    assert hw2_solution2.symmetry_1("abrbrrba") == False
    assert hw2_solution2.symmetry_2("abba")
    assert hw2_solution2.symmetry_2("abrbrba")
    assert hw2_solution2.symmetry_2("abrbrrba") == False
コード例 #2
0
ファイル: hw2_tests.py プロジェクト: AlexKushn/homeworks
def tests_for_hw2_solution2():
    u"""Набор тестов для решения задачи 2 ДЗ#2"""
    assert hw2_solution2.symmetry_1("abba")
    assert hw2_solution2.symmetry_1("abrbrba")
    assert hw2_solution2.symmetry_1("abrbrrba") == False
    assert hw2_solution2.symmetry_2("abba")
    assert hw2_solution2.symmetry_2("abrbrba")
    assert hw2_solution2.symmetry_2("abrbrrba") == False
コード例 #3
0
ファイル: hw2_starter.py プロジェクト: AlexKushn/homeworks
def runner():
    u"""Запускает выполнение всех задач"""
    print INPUT_1, ">>", hw2_solution1.squares_1(INPUT_1)
    print INPUT_1, ">>", hw2_solution1.squares_2(INPUT_1)
    print INPUT_1, ">>", hw2_solution1.squares_3(INPUT_1)

    print INPUT_2A, ">>", hw2_solution2.symmetry_1(INPUT_2A)
    print INPUT_2B, ">>", hw2_solution2.symmetry_2(INPUT_2B)
コード例 #4
0
def runner():
    u"""Запускает выполнение всех задач"""
    print INPUT_1, ">>", hw2_solution1.squares_1(INPUT_1)
    print INPUT_1, ">>", hw2_solution1.squares_2(INPUT_1)
    print INPUT_1, ">>", hw2_solution1.squares_3(INPUT_1)

    print INPUT_2A, ">>", hw2_solution2.symmetry_1(INPUT_2A)
    print INPUT_2B, ">>", hw2_solution2.symmetry_2(INPUT_2B)