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