blob: 8973a91e29704e588b95d883215afb949ab00196 [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 V remove(Object key)
/// This operation is not supported.
/// @description Checks that [remove] method is not supported.
/// @author iarkh@unipro.ru
import "dart:collection";
import "../../../Utils/expect.dart";
import "unmodifiablemapbase.lib.dart";
main() {
UnmodifiableMapBase base = new UnmodifiableMapBaseImpl({1 : 1, 2 : 2});
Expect.throws(() { base.remove(1); }, (e) => e is UnsupportedError);
Expect.throws(() { base.remove(5); }, (e) => e is UnsupportedError);
}