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

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

Issue 562333002: Issue 17024. Quick Fix to find imported library. (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
« no previous file with comments | « pkg/analysis_server/test/services/correction/fix_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b3531c8039b97dd2095d3f7d551c4042e5331633..11ba66c9d97e1c8d19c8a506b73265b0e19f0e7f 100644
--- a/pkg/analysis_server/test/services/correction/strings_test.dart
+++ b/pkg/analysis_server/test/services/correction/strings_test.dart
@@ -5,9 +5,10 @@
library test.services.correction.strings;
import 'package:analysis_server/src/services/correction/strings.dart';
-import '../../reflective_tests.dart';
import 'package:unittest/unittest.dart' hide isEmpty;
+import '../../reflective_tests.dart';
+
main() {
@@ -142,4 +143,11 @@ class StringsTest {
expect(repeat('x', 5), 'xxxxx');
expect(repeat('abc', 3), 'abcabcabc');
}
+
+ void test_substringAfterLast() {
+ expect(substringAfterLast('', '/'), '');
+ expect(substringAfterLast('abc', ''), '');
+ expect(substringAfterLast('abc', 'd'), 'abc');
+ expect(substringAfterLast('abcbde', 'b'), 'de');
+ }
}
« no previous file with comments | « pkg/analysis_server/test/services/correction/fix_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698