Ejemplo n.º 1
0
 def testCountBreakpointsFromFile(self):
     with open('data/syntegy/countBreakpoints.txt') as fp:
         line = fp.readline().strip()
         seq = [int(x) for x in line[1:-1].split(' ')]
         print countBreakpoints(seq)
Ejemplo n.º 2
0
 def testCountBreakpoints(self):
     self.assertEqual(8, countBreakpoints([+3, +4, +5, -12, -8, -7, -6, +1, +2, +10, +9, -11, +13, +14]))