Ejemplo n.º 1
0
 def test_case_end(self):
     self.assertEqual(max_substring_with_k_unique('aadabbaba'), 'abbaba')
Ejemplo n.º 2
0
 def test_input_not_str(self):
     self.assertEqual(max_substring_with_k_unique(777), 'string expected')
Ejemplo n.º 3
0
 def test_unique_char_less_k(self):
     self.assertEqual(max_substring_with_k_unique('aaaaaaaaaaa'), 'aaaaaaaaaaa')
Ejemplo n.º 4
0
 def test_empty_str(self):
     self.assertEqual(max_substring_with_k_unique(''), '')
Ejemplo n.º 5
0
 def test_short_str(self):
     self.assertEqual(max_substring_with_k_unique('a'), 'a')
Ejemplo n.º 6
0
 def test_case_mid(self):
     self.assertEqual(max_substring_with_k_unique('aadabddadaaadbbaba'), 'ddadaaad')