blob: a7a97775050a35b7e02dd5687f554d4670947a97 [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 Returns whether this map contains the given [key].
* @description Checks that null key is not allowed
* @author msyabro
* @reviewer varlax
* @reviewer rodionov
*/
library containsKey_A01_t02;
import "../../../Utils/expect.dart";
test(Map create([Map content])) {
Map<String, Object> map = create();
Expect.throws(() {
map[null] = "not null";
});
}