blob: 7ad5a7a7cdd4214bdb03ea0dd44f5e14d9e4d701 [file] [log] [blame]
// Copyright (c) 2017, 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 final int length
/// @description Checks that length property contains correct size of the map.
/// @author iarkh@unipro.ru
import "dart:collection";
import "../../../Utils/expect.dart";
import "unmodifiablemapbase.lib.dart";
main() {
UnmodifiableMapBase base = new UnmodifiableMapBaseImpl(
{1 : 1, 2 : 23, 37 : 49});
Expect.equals(3, base.length);
base = new UnmodifiableMapBaseImpl({});
Expect.equals(0, base.length);
}