blob: 03bccbb4e14d22f97090ffb8d69d2be43960aa55 [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 HashMap({bool equals(K key1, K key2), int hashCode(K key),
/// bool isValidKey(potentialKey) })
/// Creates an unordered hash-table based Map.
/// @description Checks that an empty hash map is created
/// @author msyabro
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
var map = new HashMap();
Expect.isTrue(map is HashMap);
Expect.runtimeIsType<HashMap>(map);
Expect.isTrue(map.isEmpty);
}