anchor.diff:  }
   
   void testSplitWithOffsets() {
  -  var test = """line1
  -line2
  -line3""";
  -
  -  var result = LineSplitter.split(test, 4).toList();
  -  Expect.listEquals(['1', 'line2', 'line3'], result);
  -
  -  result = LineSplitter.split(test, 5).toList();
  -  Expect.listEquals(['', 'line2', 'line3'], result);
  -
  -  result = LineSplitter.split(test, 6).toList();
  -  Expect.listEquals(['line2', 'line3'], result);
  -
  -  result = LineSplitter.split(test, 0, 8).toList();
  -  Expect.listEquals(['line1', 'li'], result);
  -
  -  result = LineSplitter.split(test, 6, 11).toList();
  -  Expect.listEquals(['line2'], result);
  -
  -  test = "Line1\nLine2\r\nLine3\rLi"
  -      "ne4\n"
  -       "\n\n\r\n\r\n\r\r";
  -
  -  result = LineSplitter.split(test).toList();
  +  for (var lf in lineTerminators) {
  +    var test = "line1${lf}line2${lf}line3";
  +    var i2 = 5 + lf.length;  // index of "line2".
  +    Expect.equals(5 + lf.length, i2);
  +
  +    var result = LineSplitter.split(test, 4).toList();
  +    Expect.listEquals(['1', 'line2', 'line3'], result);
  +
  +    result = LineSplitter.split(test, 5).toList();
  +    Expect.listEquals(['', 'line2', 'line3'], result);
  +
  +    result = LineSplitter.split(test, i2).toList();
  +    Expect.listEquals(['line2', 'line3'], result);
  +
  +    result = LineSplitter.split(test, 0, i2 + 2).toList();
  +    Expect.listEquals(['line1', 'li'], result);
  +
  +    result = LineSplitter.split(test, i2, i2 + 5).toList();
  +    Expect.listEquals(['line2'], result);
  +  }
  +
  +  var test = "Line1\nLine2\r\nLine3\rLine4\n\n\n\r\n\r\n\r\r";
  +
  +  var result = LineSplitter.split(test).toList();
   
     Expect.listEquals(
         ['Line1', 'Line2', 'Line3', 'Line4', '', '', '', '', '', ''],
  
positive.code: }
  
  void testManyLines() {
    const breaks = const ['\n', '\r\n'];
    int breakIndex = 0;
  
    var inputs = const ['line1', 'line2', 'long line 3', ' line 4 ', 'l5'];
  
  
    var buffer = inputs.fold(new StringBuffer(), (buff, e) {
      buff.write(e);
      buff.write(breaks[breakIndex]);
  
      breakIndex++;
      breakIndex = breakIndex % breaks.length;
  
      return buff;
    });
  
negative.code: import 'dart:convert';
  import 'dart:math' as MATH;
  
  
  const lineTerminators = const ['\n', '\r', '\r\n'];
  
  void main() {
    testSimpleConvert();
  