Index: pkg/analysis_server/test/services/correction/strings_test.dart |
diff --git a/pkg/analysis_server/test/services/correction/strings_test.dart b/pkg/analysis_server/test/services/correction/strings_test.dart |
index 11ba66c9d97e1c8d19c8a506b73265b0e19f0e7f..ea26934a62483be78b4f6c32991e6a39851b2974 100644 |
--- a/pkg/analysis_server/test/services/correction/strings_test.dart |
+++ b/pkg/analysis_server/test/services/correction/strings_test.dart |
@@ -131,6 +131,14 @@ class StringsTest { |
expect(remove('abc abbc abbbc', 'bc'), 'a ab abb'); |
} |
+ void test_removeEnd() { |
+ expect(removeEnd(null, 'x'), null); |
+ expect(removeEnd('abc', null), 'abc'); |
+ expect(removeEnd('www.domain.com', '.com.'), 'www.domain.com'); |
+ expect(removeEnd('www.domain.com', 'domain'), 'www.domain.com'); |
+ expect(removeEnd('www.domain.com', '.com'), 'www.domain'); |
+ } |
+ |
void test_removeStart() { |
expect(removeStart(null, 'x'), null); |
expect(removeStart('abc', null), 'abc'); |