Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: pkg/analysis_server/test/services/correction/strings_test.dart

Issue 569723004: Issue 19801. Fix for inlining referenced function with an expression body. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');

Powered by Google App Engine
This is Rietveld 408576698