Index: tests/corelib/queue_test.dart |
diff --git a/tests/corelib/queue_test.dart b/tests/corelib/queue_test.dart |
index 6e5a0d77a969492ba98deb74cfc105ffb8f3c526..3cf139ff8808d5307bced4f636b9e2d576990374 100644 |
--- a/tests/corelib/queue_test.dart |
+++ b/tests/corelib/queue_test.dart |
@@ -124,7 +124,7 @@ abstract class QueueTest { |
} |
void checkQueue(Queue queue, int expectedSize, int expectedSum) { |
- Expect.equals(expectedSize, queue.length); |
+ testLength(expectedSize, queue); |
int sum = 0; |
void sumElements(int value) { |
sum += value; |
@@ -136,6 +136,7 @@ abstract class QueueTest { |
testLength(int length, Queue queue) { |
Expect.equals(length, queue.length); |
((length == 0) ? Expect.isTrue : Expect.isFalse)(queue.isEmpty); |
+ ((length != 0) ? Expect.isTrue : Expect.isFalse)(queue.isNotEmpty); |
} |
void testAddAll() { |