Exemple #1
0
 def test_cslice_increment(self):
     pos = '1-6;9'
     expected = '10-15;18'
     ps = increment_position(pos)
     self.assertEqual(expected, ps)
Exemple #2
0
 def test_pslice_increment(self):
     pos = '50:41'
     expected = '40:31'
     ps = increment_position(pos)
     self.assertEqual(expected, ps)
Exemple #3
0
 def test_pslice_increment(self):
     pos = '1:5'
     expected = '6:10'
     ps = increment_position(pos)
     self.assertEqual(expected, ps)
Exemple #4
0
 def test_sslice_incremet(self):
     pos = '1:7:2'
     expected = '9:15:2'
     ps = increment_position(pos)
     self.assertEqual(expected, ps)
Exemple #5
0
 def test_increment_single(self):
     pos = '1'
     expected = '2'
     ps = increment_position(pos)
     self.assertEqual(expected, ps)
Exemple #6
0
 def test_increment(self):
     pos = '1,2,3'
     expected = '4,5,6'
     ps = increment_position(pos)
     self.assertEqual(expected, ps)