예제 #1
0
 def test_equals_2(self):
     self.assertEqual(endlessString('xyz', 0, 4), 'xyzx')
예제 #2
0
 def test_equals_5(self):
     self.assertEqual(
         endlessString('1x2x3x4x', -1532, -100),
         'x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2'
         'x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3')
예제 #3
0
 def test_equals(self):
     self.assertEqual(endlessString('xyz', -23, 6), 'yzxyzx')
예제 #4
0
 def test_equals_3(self):
     self.assertEqual(endlessString('xyz', 19, 2), 'yz')
예제 #5
0
 def test_equals_4(self):
     self.assertEqual(endlessString('xyz', -4, -4), 'zxyz')
예제 #6
0
 def test_equals_2(self):
     self.assertEqual(endlessString('xyz', 0, 4), 'xyzx')
예제 #7
0
 def test_equals(self):
     self.assertEqual(endlessString('xyz', -23, 6), 'yzxyzx')
예제 #8
0
 def test_equals_5(self):
     self.assertEqual(endlessString('1x2x3x4x', -1532, -100),
                      'x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2'
                      'x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3x4x1x2x3')
예제 #9
0
 def test_equals_4(self):
     self.assertEqual(endlessString('xyz', -4, -4), 'zxyz')
예제 #10
0
 def test_equals_3(self):
     self.assertEqual(endlessString('xyz', 19, 2), 'yz')