Пример #1
0
 def test_equal_1(self):
     self.assertEqual(
         pop_shift('reusetestcasesbitcointakeovertheworldmaybewhoknowspe'
                   'rhaps'),
         ['spahrepswonkohwebyamdlroweht', 'reusetestcasesbitcointakeove',
          'r']
     )
Пример #2
0
 def test_equal_6(self):
     self.assertEqual(pop_shift('letsallgoonholidaysomewhereverycold'),
                      ['dlocyreverehwemos', 'letsallgoonholida', 'y'])
Пример #3
0
 def test_equal_5(self):
     self.assertEqual(pop_shift('iwanttotraveltheworldwritingcodeoneday'),
                      ['yadenoedocgnitirwdl', 'iwanttotravelthewor', ''])
Пример #4
0
 def test_equal_4(self):
     self.assertEqual(pop_shift('exampletesthere'),
                      ['erehtse', 'example', 't'])
Пример #5
0
 def test_equal_3(self):
     self.assertEqual(pop_shift('letstalkaboutjavascriptthebestlanguage'),
                      ['egaugnaltsebehttpir', 'letstalkaboutjavasc', ''])
Пример #6
0
 def test_equal_2(self):
     self.assertEqual(
         pop_shift('turnsoutrandomtestcasesareeasierthanwritingoutbasico'
                   'nes'),
         ['senocisabtuognitirwnahtreis','turnsoutrandomtestcasesaree', 'a']
     )