| Index: tests/corelib/reg_exp_start_end_test.dart
|
| diff --git a/tests/corelib/reg_exp_start_end_test.dart b/tests/corelib/reg_exp_start_end_test.dart
|
| index 80b4634a44d0dc83028ca2ca590a509e29b56d31..18a7337e915c2ff53acdf4d1ba233f152c55031e 100644
|
| --- a/tests/corelib/reg_exp_start_end_test.dart
|
| +++ b/tests/corelib/reg_exp_start_end_test.dart
|
| @@ -5,11 +5,11 @@
|
| main() {
|
| var matches =
|
| new RegExp("(a(b)((c|de)+))").allMatches("abcde abcde abcde");
|
| - var it = matches.iterator();
|
| + var it = matches.iterator;
|
| int start = 0;
|
| int end = 5;
|
| - while (it.hasNext) {
|
| - Match match = it.next();
|
| + while (it.moveNext()) {
|
| + Match match = it.current;
|
| Expect.equals(start, match.start);
|
| Expect.equals(end, match.end);
|
| start += 6;
|
|
|