OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Test the IterableBase/IterableMixin toString method. | 5 // Test the IterableBase/IterableMixin toString method. |
6 | 6 |
7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 import "dart:collection"; | 8 import "dart:collection"; |
9 | 9 |
10 String mkIt(int len, [func]) { | 10 String mkIt(int len, [func]) { |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 " ..., 98, 99)", | 97 " ..., 98, 99)", |
98 mkIt(100, | 98 mkIt(100, |
99 (x) => (x < 3) ? "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" : "$x")); | 99 (x) => (x < 3) ? "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" : "$x")); |
100 | 100 |
101 Expect.equals( | 101 Expect.equals( |
102 //0123456789012345678901234567890123456789 | 102 //0123456789012345678901234567890123456789 |
103 "(, , , , , , , , , , , , , , , , , , , ," | 103 "(, , , , , , , , , , , , , , , , , , , ," |
104 " , , , , , , , , , , , , , , , ..., , )", | 104 " , , , , , , , , , , , , , , , ..., , )", |
105 mkIt(100, (_) => "")); | 105 mkIt(100, (_) => "")); |
106 } | 106 } |
OLD | NEW |