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

Unified Diff: tests/corelib/set_iterator_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_exp_start_end_test.dart ('k') | tests/corelib/string_pattern_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/set_iterator_test.dart
diff --git a/tests/corelib/set_iterator_test.dart b/tests/corelib/set_iterator_test.dart
index 086a714dcb0fad7546cd3d1b218d181ea098fcc2..db7b4c144035971ce9c497d48579b70fa3e88189 100644
--- a/tests/corelib/set_iterator_test.dart
+++ b/tests/corelib/set_iterator_test.dart
@@ -20,7 +20,7 @@ class SetIteratorTest {
}
static void testThrows(Iterator<int> it) {
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
var exception = null;
try {
it.next();
@@ -32,7 +32,7 @@ class SetIteratorTest {
static int sum(int expected, Iterator<int> it) {
int count = 0;
- while (it.hasNext()) {
+ while (it.hasNext) {
count += it.next();
}
Expect.equals(expected, count);
@@ -45,7 +45,7 @@ class SetIteratorTest {
set.add(3);
Iterator<int> it = set.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
sum(6, it);
testThrows(it);
}
@@ -58,7 +58,7 @@ class SetIteratorTest {
set.add(i);
}
Iterator<int> it = set.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
sum(count, it);
testThrows(it);
}
@@ -66,7 +66,7 @@ class SetIteratorTest {
static void testEmptySet() {
Set<int> set = new Set<int>();
Iterator<int> it = set.iterator();
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
sum(0, it);
testThrows(it);
}
@@ -80,7 +80,7 @@ class SetIteratorTest {
set.remove(i);
}
Iterator<int> it = set.iterator();
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
sum(0, it);
testThrows(it);
@@ -91,7 +91,7 @@ class SetIteratorTest {
else count += i;
}
it = set.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
sum(count, it);
testThrows(it);
}
« no previous file with comments | « tests/corelib/reg_exp_start_end_test.dart ('k') | tests/corelib/string_pattern_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698