Index: tests/corelib/reg_exp5_test.dart |
diff --git a/tests/corelib/reg_exp5_test.dart b/tests/corelib/reg_exp5_test.dart |
index 56002cac03e87ef7a98dcea9c07e4e86c476c8dc..3a1aa7f9e01f91a790dc53b5150f03f07d0d52cb 100644 |
--- a/tests/corelib/reg_exp5_test.dart |
+++ b/tests/corelib/reg_exp5_test.dart |
@@ -17,7 +17,7 @@ main() { |
Expect.equals(null, fm); |
Iterable<Match> am = new RegExp(r"^\w+$").allMatches(str); |
- Expect.isFalse(am.iterator().hasNext); |
+ Expect.isFalse(am.iterator.moveNext()); |
Expect.equals(null, new RegExp(r"^\w+$").stringMatch(str)); |
} |