Index: tests/corelib/string_pattern_test.dart |
diff --git a/tests/corelib/string_pattern_test.dart b/tests/corelib/string_pattern_test.dart |
index 3fb35337ed0684e21a7efa1d2c508c902d84a293..88fc78c808b1e846c3a23b5cbae1be6945b5726f 100644 |
--- a/tests/corelib/string_pattern_test.dart |
+++ b/tests/corelib/string_pattern_test.dart |
@@ -18,7 +18,7 @@ testNoMatch() { |
// Also tests that RegExp groups don't work. |
String helloPattern = "with (hello)"; |
Iterable<Match> matches = helloPattern.allMatches(str); |
- Expect.isFalse(matches.iterator().hasNext()); |
+ Expect.isFalse(matches.iterator().hasNext); |
} |
testOneMatch() { |
@@ -26,7 +26,7 @@ testOneMatch() { |
Iterable<Match> matches = helloPattern.allMatches(str); |
var iterator = matches.iterator(); |
Match match = iterator.next(); |
- Expect.isFalse(iterator.hasNext()); |
+ Expect.isFalse(iterator.hasNext); |
Expect.equals(str.indexOf('with', 0), match.start()); |
Expect.equals(str.indexOf('with', 0) + helloPattern.length, match.end()); |
Expect.equals(helloPattern, match.pattern); |
@@ -58,19 +58,19 @@ testTwoMatches() { |
testEmptyPattern() { |
String pattern = ""; |
Iterable<Match> matches = pattern.allMatches(str); |
- Expect.isTrue(matches.iterator().hasNext()); |
+ Expect.isTrue(matches.iterator().hasNext); |
} |
testEmptyString() { |
String pattern = "foo"; |
String str = ""; |
Iterable<Match> matches = pattern.allMatches(str); |
- Expect.isFalse(matches.iterator().hasNext()); |
+ Expect.isFalse(matches.iterator().hasNext); |
} |
testEmptyPatternAndString() { |
String pattern = ""; |
String str = ""; |
Iterable<Match> matches = pattern.allMatches(str); |
- Expect.isTrue(matches.iterator().hasNext()); |
+ Expect.isTrue(matches.iterator().hasNext); |
} |