Ejemplo n.º 1
0
 def test_bracket(self):
     self.assertEqual(('[Am]azon', 'Mi[cro]soft', 'Goog[le]'),
                      bracket(self.words, self.symbols))
     self.assertEqual(('Amazon', 'Microsoft', 'Google'),
                      bracket(self.words, ['thisshouldnotmatch']))
     self.assertEqual(('Amazon', 'M[i]crosoft', 'Google'),
                      bracket(self.words, ['i', 'i']))
 def test_bracket(self):
     self.assertEqual(("[Am]azon", "Mi[cro]soft", "Goog[le]"),
                      bracket(self.words, self.symbols))
     self.assertEqual(
         ("Amazon", "Microsoft", "Google"),
         bracket(self.words, ["thisshouldnotmatch"]),
     )
     self.assertEqual(("Amazon", "M[i]crosoft", "Google"),
                      bracket(self.words, ["i", "i"]))
Ejemplo n.º 3
0
 def test_bracket(self):
     self.assertEqual(('[Am]azon', 'Mi[cro]soft', 'Goog[le]'),
                      bracket(self.words, self.symbols))
Ejemplo n.º 4
0
 def test_bracket(self):
     self.assertEqual(('[Am]azon', 'Mi[cro]soft', 'Goog[le]'), bracket(self.words, self.symbols))