blob: 2bf9ff1fdb1bc43491233ae5a3049ed97e5a0b74 [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.
// @dart = 2.9
/// @assertion List<E> abstract class
/// @description Checks that List-specific methods work as specified.
/// @author kaigorodov
import "allListTests.lib.dart";
List create([int length = null]) {
if (length == null) {
return new List();
} else {
return new List(length);
}
}
main() {
test(create);
}