OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
6 | 6 |
7 class IC { | 7 class IC { |
8 int count = 0; | 8 int count = 0; |
9 String toString() => "${count++}"; | 9 String toString() => "${count++}"; |
10 } | 10 } |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 final String value; | 139 final String value; |
140 Stringable(this.value); | 140 Stringable(this.value); |
141 String toString() => value; | 141 String toString() => value; |
142 } | 142 } |
143 | 143 |
144 main() { | 144 main() { |
145 testCollections(); | 145 testCollections(); |
146 testStringVariants(); | 146 testStringVariants(); |
147 // TODO(lrn): test scalar lists. | 147 // TODO(lrn): test scalar lists. |
148 } | 148 } |
OLD | NEW |