| 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');
|
| + }
|
| }
|
|
|