blob: 8e1227afa057f24650e1412b53626b1e250cc1f5 [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.
// @dart = 2.9
/// @assertion final bool isNotEmpty
/// @description Check that [true] is returned only if the map is not empty.
/// @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.isTrue(base.isNotEmpty);
base = new UnmodifiableMapBaseImpl({});
Expect.isFalse(base.isNotEmpty);
}