blob: b5536c47aba58428c71a01b91586e873a643d44b [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], "[", "}"));
}