blob: f4ec5dcb78abf6ea578bf9c993590bf2b29f8723 [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 void addAll(Map<K, V> other)
* This operation is not supported.
* @description Checks that [addAll] method is not supported.
* @author iarkh@unipro.ru
*/
import "dart:collection";
import "../../../Utils/expect.dart";
import "unmodifiablemapbase.lib.dart";
main() {
UnmodifiableMapBase base = new UnmodifiableMapBaseImpl({});
Expect.throws(() { base.addAll({}); }, (e) => e is UnsupportedError);
Expect.throws(() { base.addAll({1 : 1}); }, (e) => e is UnsupportedError);
}