blob: 13c7bfc16d1fd4145487c4b78bdd1e9451b919af [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 String iterableToShortString(Iterable iterable,
/// [String leftDelimiter = '(', String rightDelimiter = ')'])
/// Allows using other delimiters than '(' and ')'.
/// @description Checks that IterableBase.iterableToShortString() wraps the
/// result in leftDelimiter and rightDelimiter
/// @author sgrekhov@unipro.ru
import "../../../Utils/expect.dart";
import "dart:collection";
main() {
Expect.equals("[1, 2, 3, -1}",
IterableBase.iterableToShortString([1, 2, 3, -1], "[", "}"));
}