blob: 8000e6c6914a1ce9f5e4735ef1327b8943c6d323 [file] [log] [blame]
/*
* Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
* for details. All rights reserved. Use of this source code is governed by a
* BSD-style license that can be found in the LICENSE file.
*/
/**
* @assertion void forEach(void f(E element))
* Applies the function [f] to each element of this collection in iteration
* order.
* @description Checks [forEach()] on empty list.
* @author kaigorodov
*/
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
DoubleLinkedQueue queue = new DoubleLinkedQueue();
int count = 0;
queue.forEach((var element) {
count++;
});
Expect.isTrue(count == 0);
}