@@ -342,18 +342,18 @@ class RangesTest extends DDSpecification {
342342
343343 where :
344344 input | indentation | ranges | expected
345- // "123\n123" | 4 | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(6, 1, (byte) 2, null, "3")] | [rangeWithSource(4, 3, (byte) 1, null, "123"), rangeWithSource(14, 1, (byte) 2, null, "3")]
346- // "123\r\n123" | 4 | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(7, 1, (byte) 2, null, "3")] | [rangeWithSource(4, 3, (byte) 1, null, "123"), rangeWithSource(14, 1, (byte) 2, null, "3")]
345+ " 123\n 123" | 4 | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(4 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(14 , 1 , (byte ) 2 , null , " 3" )]
346+ " 123\r\n 123" | 4 | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(7 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(4 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(14 , 1 , (byte ) 2 , null , " 3" )]
347347 " 123\n 123" | 4 | [rangeWithSource(0 , 5 , (byte ) 1 , null , " 123\n 1" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(4 , 9 , (byte ) 1 , null , " 123\n 1" ), rangeWithSource(14 , 1 , (byte ) 2 , null , " 3" )]
348- // "123\r\n123" | 4 | [rangeWithSource(0, 6, (byte) 1, null, "123\r\n1"), rangeWithSource(7, 1, (byte) 2, null, "3")] | [rangeWithSource(4, 9, (byte) 1, null, "123\r\n1"), rangeWithSource(14, 1, (byte) 2, null, "3")]
349- // "123\n123" | 0 | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(6, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(6, 1, (byte) 2, null, "3")]
350- // "123\r\n123" | 0 | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(7, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(6, 1, (byte) 2, null, "3")]
351- // "123\n123" | 0 | [rangeWithSource(0, 5, (byte) 1, null, "123\n1"), rangeWithSource(6, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 5, (byte) 1, null, "123\n1"), rangeWithSource(6, 1, (byte) 2, null, "3")]
352- // "123\r\n123" | 0 | [rangeWithSource(0, 6, (byte) 1, null, "123\r\n1"), rangeWithSource(7, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 5, (byte) 1, null, "123\r\n1"), rangeWithSource(6, 1, (byte) 2, null, "3")]
353- // " 123\n 123" | -4 | [rangeWithSource(4, 3, (byte) 1, null, "123"), rangeWithSource(14, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(6, 1, (byte) 2, null, "3")]
354- // " 123\r\n 123" | -4 | [rangeWithSource(4, 3, (byte) 1, null, "123"), rangeWithSource(15, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 3, (byte) 1, null, "123"), rangeWithSource(6, 1, (byte) 2, null, "3")]
355- // " 123\n 123" | -4 | [rangeWithSource(4, 9, (byte) 1, null, "123\n1"), rangeWithSource(14, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 5, (byte) 1, null, "123\n1"), rangeWithSource(6, 1, (byte) 2, null, "3")]
356- // " 123\r\n 123" | -4 | [rangeWithSource(4, 10, (byte) 1, null, "123\r\n1"), rangeWithSource(15, 1, (byte) 2, null, "3")] | [rangeWithSource(0, 5, (byte) 1, null, "123\r\n1"), rangeWithSource(6, 1, (byte) 2, null, "3")]
348+ " 123\r\n 123" | 4 | [rangeWithSource(0 , 6 , (byte ) 1 , null , " 123\r\n 1" ), rangeWithSource(7 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(4 , 9 , (byte ) 1 , null , " 123\r\n 1" ), rangeWithSource(14 , 1 , (byte ) 2 , null , " 3" )]
349+ " 123\n 123" | 0 | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
350+ " 123\r\n 123" | 0 | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(7 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
351+ " 123\n 123" | 0 | [rangeWithSource(0 , 5 , (byte ) 1 , null , " 123\n 1" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 5 , (byte ) 1 , null , " 123\n 1" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
352+ " 123\r\n 123" | 0 | [rangeWithSource(0 , 6 , (byte ) 1 , null , " 123\r\n 1" ), rangeWithSource(7 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 5 , (byte ) 1 , null , " 123\r\n 1" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
353+ " 123\n 123" | -4 | [rangeWithSource(4 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(14 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
354+ " 123\r\n 123" | -4 | [rangeWithSource(4 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(15 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 3 , (byte ) 1 , null , " 123" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
355+ " 123\n 123" | -4 | [rangeWithSource(4 , 9 , (byte ) 1 , null , " 123\n 1" ), rangeWithSource(14 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 5 , (byte ) 1 , null , " 123\n 1" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
356+ " 123\r\n 123" | -4 | [rangeWithSource(4 , 10 , (byte ) 1 , null , " 123\r\n 1" ), rangeWithSource(15 , 1 , (byte ) 2 , null , " 3" )] | [rangeWithSource(0 , 5 , (byte ) 1 , null , " 123\r\n 1" ), rangeWithSource(6 , 1 , (byte ) 2 , null , " 3" )]
357357 }
358358
359359
0 commit comments