Пример #1
0
def test_actual_part1():
    content = []
    with open("input.secret") as f:
        content = f.readlines()

    nice_strings = 0
    for line in content:
        if naught_nice.niceness(line):
            nice_strings += 1

    print (nice_strings)
    assert 258 == nice_strings
Пример #2
0
def test_lacks_contains_evil_string():
    assert False == naught_nice.niceness("haegwjzuvuyypxyu")
Пример #3
0
def test_ugknbfddgicrmopn():
    assert naught_nice.niceness("ugknbfddgicrmopn")
Пример #4
0
def test_aaa():
    assert naught_nice.niceness("aaa")
Пример #5
0
def test_has_double_letters():
    assert False == naught_nice.niceness("jchzalrnumimnmhp")
Пример #6
0
def test_lacks_enough_vowels():
    assert False == naught_nice.niceness("dvszwmarrgswjxmb")