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

Unified Diff: tests/corelib/reg_exp_all_matches_test.dart

Issue 11230011: Make hasNext a getter instead of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused variable. Created 8 years, 2 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 | « tests/corelib/reg_exp5_test.dart ('k') | tests/corelib/reg_exp_start_end_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/reg_exp_all_matches_test.dart
diff --git a/tests/corelib/reg_exp_all_matches_test.dart b/tests/corelib/reg_exp_all_matches_test.dart
index efd5a5ad3b84285f4173c517399528a268ad691a..9ea1bbf9186a51972f923b98bf4f26e6c99f2549 100644
--- a/tests/corelib/reg_exp_all_matches_test.dart
+++ b/tests/corelib/reg_exp_all_matches_test.dart
@@ -8,25 +8,25 @@ class RegExpAllMatchesTest {
static testIterator() {
var matches = new RegExp("foo").allMatches("foo foo");
Iterator it = matches.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
Expect.equals('foo', it.next().group(0));
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
Expect.equals('foo', it.next().group(0));
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
// Run two iterators over the same results.
it = matches.iterator();
Iterator it2 = matches.iterator();
- Expect.equals(true, it.hasNext());
- Expect.equals(true, it2.hasNext());
+ Expect.equals(true, it.hasNext);
+ Expect.equals(true, it2.hasNext);
Expect.equals('foo', it.next().group(0));
Expect.equals('foo', it2.next().group(0));
- Expect.equals(true, it.hasNext());
- Expect.equals(true, it2.hasNext());
+ Expect.equals(true, it.hasNext);
+ Expect.equals(true, it2.hasNext);
Expect.equals('foo', it.next().group(0));
Expect.equals('foo', it2.next().group(0));
- Expect.equals(false, it.hasNext());
- Expect.equals(false, it2.hasNext());
+ Expect.equals(false, it.hasNext);
+ Expect.equals(false, it2.hasNext);
}
static testForEach() {
« no previous file with comments | « tests/corelib/reg_exp5_test.dart ('k') | tests/corelib/reg_exp_start_end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698