Beispiel #1
0
 def testEvalLineOffsetsWithAllEmptyLines(self):
     lines = "\n\n\n\n\n"
     offsets = dtpp.evaluate_file_line_offsets(lines, False)
     self.assertEqual([0, 1, 2, 3, 4, 5, 6], offsets)
Beispiel #2
0
 def testEvalLineOffsetsWithEmptyLines(self):
     lines = "a\nb\n\n\nc\nd"
     offsets = dtpp.evaluate_file_line_offsets(lines, False)
     self.assertEqual([0, 2, 4, 5, 6, 8, 10], offsets)