blob: daef2f05b0329bc6a0ab2d4560937eb567404120 [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 LinkedHashMap<K, V> abstract class
* Implements HashMap<K, V>
* @static-warning
* @description Checks that LinkedHashMap implements HashMap.
* @author kaigorodov
*/
import "dart:collection";
import "../HashMap/compKeysWarnTests.lib.dart";
Map create([Map content]) {
LinkedHashSet res = new LinkedHashSet();
if (content==null) {
return new LinkedHashMap();
} else {
return new LinkedHashMap.from(content);
}
}
main() {
test(create);
}