blob: f86499ca19294a6f6152f4af851fd14bfb68150b [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.
/// @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], "[", "}"));
}