blob: 3eaedba0919f44e77c6f75cd891d7f6fac5c0c53 [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 Returns whether the [Iterator] has elements left.
/// @description Checks that [Iterator] has no elements left when the list is
/// cleared.
/// @author kaigorodov
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
DoubleLinkedQueue list = new DoubleLinkedQueue.from([0, 1, 2, 3, 4, 5]);
list.clear();
Iterator it = list.iterator;
Expect.isFalse(it.moveNext());
}