blob: c9f6aa4f8f3cf3d48e48e1b08d7701f18dfff8a3 [file] [log] [blame]
// Copyright (c) 2016, 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 SplayTreeMap.from(Map other, [int compare(K key1, K key2),
/// bool isValidKey(potentialKey)])
/// Creates a [SplayTreeMap] that contains all key/value pairs of [other].
/// @description Checks that it is an error if [other] is [null]
/// @author sgrekhov@unipro.ru
import "dart:collection";
import "../../../Utils/expect.dart";
main() {
Expect.throws(() { new SplayTreeMap.from(null); });
}