Пример #1
0
 def test_returns_correct_string(self):
     self.assertEqual(
         answer([
             "abcdefg", "vi", "lmb", "vi", "vi", "lmb", "lmb", "fmb",
             "hello", "checkout"
         ]), [
             "checkout", "hello", "vi", "vi", "vi", "abcdefg", "lmb", "lmb",
             "lmb", "fmb"
         ])
 def test_returns_correct_string(self):
     self.assertEqual(answer(["abcdefg", "vi"]),["vi", "abcdefg"])
 def test_returns_correct_string(self):
     self.assertEqual(answer(["annie", "bonnie", "liz"]),["bonnie", "liz", "annie"])
 def test_returns_correct_string(self):
     self.assertEqual(answer(["az", "by", "cx", "az", "by", "cx"]), ['cx', 'cx', 'by', 'by', 'az', 'az'])
 def test_returns_correct_string(self):
     self.assertEqual(answer(["abcdefg", "vi", "lmb", "vi", "vi", "lmb", "lmb", "fmb", "hello", "checkout"]),["checkout", "hello", "vi", "vi", "vi", "abcdefg", "lmb", "lmb", "lmb", "fmb"])
Пример #6
0
 def test_returns_correct_string(self):
     self.assertEqual(answer(["abcdefg", "vi"]), ["vi", "abcdefg"])
Пример #7
0
 def test_returns_correct_string(self):
     self.assertEqual(answer(["annie", "bonnie", "liz"]),
                      ["bonnie", "liz", "annie"])
Пример #8
0
 def test_returns_correct_string(self):
     self.assertEqual(answer(["az", "by", "cx", "az", "by", "cx"]),
                      ['cx', 'cx', 'by', 'by', 'az', 'az'])