Beispiel #1
0
 def test_too_short(self):
     self.assertEqual(no_repeats('authorize'), [])
Beispiel #2
0
 def test_multiple(self):
     words = "the\ntambourines\nnefariously\nclamouring\neverywhere"
     self.assertEqual(
         no_repeats(words),
         ['tambourines', 'nefariously', 'clamouring']
     )
Beispiel #3
0
 def test_background(self):
     self.assertEqual(no_repeats("background"), ['background'])
 def test_too_short(self):
     self.assertEqual(no_repeats('authorize'), [])
 def test_multiple(self):
     words = "the\ntambourines\nnefariously\nclamouring\neverywhere"
     self.assertEqual(
         no_repeats(words),
         ['tambourines', 'nefariously', 'clamouring']
     )
 def test_background(self):
     self.assertEqual(no_repeats("background"), ['background'])