Index: pkg/analyzer/test/generated/utilities_test.dart |
diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart |
index 24263e726e1c70fa6f4f2a9f3baad6b49c87f88b..c156aac637535e0bb0ce51bcfdf9f292f356ffc6 100644 |
--- a/pkg/analyzer/test/generated/utilities_test.dart |
+++ b/pkg/analyzer/test/generated/utilities_test.dart |
@@ -4566,6 +4566,21 @@ class SourceRangeTest { |
@reflectiveTest |
class StringUtilitiesTest { |
+ void test_computeLineStarts_n() { |
+ List<int> starts = StringUtilities.computeLineStarts('a\nbb\nccc'); |
+ expect(starts, <int>[0, 2, 5]); |
+ } |
+ |
+ void test_computeLineStarts_r() { |
+ List<int> starts = StringUtilities.computeLineStarts('a\rbb\rccc'); |
+ expect(starts, <int>[0, 2, 5]); |
+ } |
+ |
+ void test_computeLineStarts_rn() { |
+ List<int> starts = StringUtilities.computeLineStarts('a\r\nbb\r\nccc'); |
+ expect(starts, <int>[0, 3, 7]); |
+ } |
+ |
void test_EMPTY() { |
expect(StringUtilities.EMPTY, ""); |
expect(StringUtilities.EMPTY.isEmpty, isTrue); |