blob: 65fbd6dff66e1d9b540ed08154dc8d3ec384d957 [file] [log] [blame]
// Copyright (c) 2016, 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 LinkedList<E> list
/// Get the linked list containing this element.
/// Returns [null] if this entry is not currently in any list.
/// @description Checks that null is returned if this entry is not currently in
/// any list and correct list otherwise
/// @author
import "../../../Utils/expect.dart";
import "dart:collection";
import "LinkedListEntry.lib.dart";
main() {
MyLinkedListEntry<int> entry = new MyLinkedListEntry<int>(1);
LinkedList<MyLinkedListEntry> list = new LinkedList<MyLinkedListEntry<int>>();
Expect.identical(list, entry.list);
LinkedList<MyLinkedListEntry> list2 = new LinkedList<MyLinkedListEntry<int>>();
Expect.identical(list2, entry.list);