示例#1
0
文件: part1.py 项目: stedevine/advent
from password import Password
#part 1
print (Password.getNextPassword("vzbxkghb"))
#part 2
print (Password.getNextPassword(Password.getNextPassword("vzbxkghb")))
示例#2
0
文件: test.py 项目: stedevine/advent
 def test_from_problem(self):
     self.assertEqual("abcdffaa", Password.getNextPassword("abcdefgh"))
     # takes 3 minutes to run 
     self.assertEqual("ghjaabcc", Password.getNextPassword("ghijklmn"))