Exemple #1
0
 def test_problem_input(self):
     self.assertEqual(True, Password.hasIncreasingStraightOfThree("hijklmmn"))
     self.assertEqual(False, Password.hasIncreasingStraightOfThree("abbceffg"))
Exemple #2
0
 def test_chars_have_leading_y_and_z_straight(self):
     self.assertEqual(True, Password.hasIncreasingStraightOfThree("xzyxyzaa"))
Exemple #3
0
 def test_last_chars_increasing_straight(self):
     self.assertEqual(True, Password.hasIncreasingStraightOfThree("aaaaaghi"))
Exemple #4
0
 def test_mid_chars_increasing_straight(self):
     self.assertEqual(True, Password.hasIncreasingStraightOfThree("bbbxyzaa"))
Exemple #5
0
 def test_no_straight(self):
     self.assertEqual(False, Password.hasIncreasingStraightOfThree("abababab"))