def test_actual_part2(): content = [] with open("input.secret") as f: content = f.readlines() nice_strings = 0 for line in content: if naught_nice.new_niceness(line): nice_strings += 1 print (nice_strings) assert 53 == nice_strings
def test_pair_appears_twice(): assert False == naught_nice.new_niceness("ieodomkazucvgmuy")
def test_xxyxx(): assert naught_nice.new_niceness("xxyxx")
def test_repeating_with_one_between(): assert False == naught_nice.new_niceness("uurcxstgmygtbstg")
def test_qjhvhtzxzqqjkmpb(): assert naught_nice.new_niceness("qjhvhtzxzqqjkmpb")