blob: 615e026558083b292113356a9cef089f6852c6f9 [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 DoubleLinkedQueueEntry<E> firstEntry()
/// @description Checks that the method returns the first entry of the queue.
/// @author kaigorodov
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
DoubleLinkedQueue queue = new DoubleLinkedQueue();
Expect.isTrue(queue.firstEntry()?.element == 1);
Expect.isTrue(queue.firstEntry()?.element == 1);
Expect.isTrue(queue.firstEntry()?.element == null);