Skip to content

Commit

Permalink
make document work regardless of linesep
Browse files Browse the repository at this point in the history
  • Loading branch information
milesziemer committed Jun 13, 2024
1 parent 80fc8fe commit 2eebc80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ public void borrowsSpan() {
assertThat(line.borrowSpan(0, 4), nullValue()); // oob
assertThat(multi.borrowSpan(0, safeIndex(4, 1)), string(safeString("abc\n"))); // with newline
assertThat(multi.borrowSpan(3, safeIndex(5, 1)), string(safeString("\nd"))); // inner
assertThat(multi.borrowSpan(safeIndex(5, 2), safeIndex(9, 2)), string(safeString("ef\n\n"))); // up to end
assertThat(multi.borrowSpan(safeIndex(5, 1), safeIndex(9, 3)), string(safeString("ef\n\n"))); // up to end
}

@Test
Expand Down

0 comments on commit 2eebc80

Please sign in to comment.