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

Unified Diff: tests/corelib/queue_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/list_iterators_test.dart ('k') | tests/corelib/reg_exp5_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/queue_iterator_test.dart
diff --git a/tests/corelib/queue_iterator_test.dart b/tests/corelib/queue_iterator_test.dart
index 488192ee40c790d908dc7797cde373aad330f133..cee6a57f7850c20aabdc83fd5b53d49471836f06 100644
--- a/tests/corelib/queue_iterator_test.dart
+++ b/tests/corelib/queue_iterator_test.dart
@@ -10,7 +10,7 @@ class QueueIteratorTest {
}
static void testThrows(Iterator<int> it) {
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
var exception = null;
try {
it.next();
@@ -22,7 +22,7 @@ class QueueIteratorTest {
static int sum(int expected, Iterator<int> it) {
int count = 0;
- while (it.hasNext()) {
+ while (it.hasNext) {
count += it.next();
}
Expect.equals(expected, count);
@@ -35,7 +35,7 @@ class QueueIteratorTest {
queue.addLast(3);
Iterator<int> it = queue.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
sum(6, it);
testThrows(it);
}
@@ -48,7 +48,7 @@ class QueueIteratorTest {
queue.addLast(i);
}
Iterator<int> it = queue.iterator();
- Expect.equals(true, it.hasNext());
+ Expect.equals(true, it.hasNext);
sum(count, it);
testThrows(it);
}
@@ -56,7 +56,7 @@ class QueueIteratorTest {
static void testEmptyQueue() {
Queue<int> queue = new Queue<int>();
Iterator<int> it = queue.iterator();
- Expect.equals(false, it.hasNext());
+ Expect.equals(false, it.hasNext);
sum(0, it);
testThrows(it);
}
« no previous file with comments | « tests/corelib/list_iterators_test.dart ('k') | tests/corelib/reg_exp5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698