コード例 #1
0
 def test_equals_8(self):
     self.assertEqual(mix('codewars', 'codewars'), '')
コード例 #2
0
 def test_equals_6(self):
     self.assertEqual(mix(' In many languages',
                          ' there\'s a pair of functions'),
                      '1:aaa/1:nnn/1:gg/2:ee/2:ff/2:ii/2:oo/2:rr/2:ss/2:tt')
コード例 #3
0
 def test_equals_7(self):
     self.assertEqual(mix('Lords of the Fallen', 'gamekult'),
                      '1:ee/1:ll/1:oo')
コード例 #4
0
 def test_equals_4(self):
     self.assertEqual(mix('Are they here', 'yes, they are here'),
                      '2:eeeee/2:yy/=:hh/=:rr')
コード例 #5
0
 def test_equals_5(self):
     self.assertEqual(mix('looping is fun but dangerous',
                          'less dangerous than coding'),
                      '1:ooo/1:uuu/2:sss/=:nnn/1:ii/2:aa/2:dd/2:ee/=:gg')
コード例 #6
0
 def test_equals_3(self):
     self.assertEqual(
         mix('Are the kids at home? aaaaa fffff',
             'Yes they are here! aaaaa fffff'),
         '=:aaaaaa/2:eeeee/=:fffff/1:tt/2:rr/=:hh')
コード例 #7
0
 def test_equals_3(self):
     self.assertEqual(mix('Are the kids at home? aaaaa fffff',
                          'Yes they are here! aaaaa fffff'),
                      '=:aaaaaa/2:eeeee/=:fffff/1:tt/2:rr/=:hh')
コード例 #8
0
 def test_equals_9(self):
     self.assertEqual(
         mix('A generation must confront the looming ', 'codewarrs'),
         '1:nnnnn/1:ooooo/1:tttt/1:eee/1:gg/1:ii/1:mm/=:rr')
コード例 #9
0
 def test_equals(self):
     self.assertEqual(
         mix('my&friend&Paul has heavy hats! &',
             'my friend John has many many friends &'),
         '2:nnnnn/1:aaaa/1:hhh/2:mmm/2:yyy/2:dd/2:ff/2:ii/2:'
         'rr/=:ee/=:ss')
コード例 #10
0
 def test_equals_7(self):
     self.assertEqual(mix('Lords of the Fallen', 'gamekult'),
                      '1:ee/1:ll/1:oo')
コード例 #11
0
 def test_equals_8(self):
     self.assertEqual(mix('codewars', 'codewars'), '')
コード例 #12
0
 def test_equals_6(self):
     self.assertEqual(
         mix(' In many languages', ' there\'s a pair of functions'),
         '1:aaa/1:nnn/1:gg/2:ee/2:ff/2:ii/2:oo/2:rr/2:ss/2:tt')
コード例 #13
0
 def test_equals_5(self):
     self.assertEqual(
         mix('looping is fun but dangerous', 'less dangerous than coding'),
         '1:ooo/1:uuu/2:sss/=:nnn/1:ii/2:aa/2:dd/2:ee/=:gg')
コード例 #14
0
 def test_equals_4(self):
     self.assertEqual(mix('Are they here', 'yes, they are here'),
                      '2:eeeee/2:yy/=:hh/=:rr')
コード例 #15
0
 def test_equals_9(self):
     self.assertEqual(mix('A generation must confront the looming ',
                          'codewarrs'),
                      '1:nnnnn/1:ooooo/1:tttt/1:eee/1:gg/1:ii/1:mm/=:rr')
コード例 #16
0
 def test_equals_2(self):
     self.assertEqual(mix(
         'mmmmm m nnnnn y&friend&Paul has heavy hats! &',
         'my frie n d Joh n has ma n y ma n y frie n ds n&'),
         '1:mmmmmm/=:nnnnnn/1:aaaa/1:hhh/2:yyy/2:dd/2:ff/2:ii/2:rr/=:ee/='
         ':ss')
コード例 #17
0
 def test_equals(self):
     self.assertEqual(mix('my&friend&Paul has heavy hats! &',
                          'my friend John has many many friends &'),
                      '2:nnnnn/1:aaaa/1:hhh/2:mmm/2:yyy/2:dd/2:ff/2:ii/2:'
                      'rr/=:ee/=:ss')
コード例 #18
0
 def test_equals_2(self):
     self.assertEqual(
         mix('mmmmm m nnnnn y&friend&Paul has heavy hats! &',
             'my frie n d Joh n has ma n y ma n y frie n ds n&'),
         '1:mmmmmm/=:nnnnnn/1:aaaa/1:hhh/2:yyy/2:dd/2:ff/2:ii/2:rr/=:ee/='
         ':ss')