Example #1
0
 def test_naughty(self):
     self.assertFalse(is_nice2("uurcxstgmygtbstg"))
     self.assertFalse(is_nice2("ieodomkazucvgmuy"))
Example #2
0
 def test_nice(self):
     self.assertTrue(is_nice2("qjhvhtzxzqqjkmpb"))
     self.assertTrue(is_nice2("xxyxx"))
Example #3
0
 def test_examples_part_2_naughty(self):
     self.assertFalse(main.is_nice2('uurcxstgmygtbstg'))
     self.assertFalse(main.is_nice2('ieodomkazucvgmuy'))
Example #4
0
 def test_empty_string(self):
     self.assertFalse(main.is_nice1(''))
     self.assertFalse(main.is_nice2(''))
Example #5
0
 def test_examples_part_2_nice(self):
     self.assertTrue(main.is_nice2('qjhvhtzxzqqjkmpb'))
     self.assertTrue(main.is_nice2('xxyxx'))