| 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 library matcher.pretty_print_test; | |
| 6 | |
| 7 import 'dart:collection'; | 5 import 'dart:collection'; |
| 8 | 6 |
| 9 import 'package:matcher/matcher.dart'; | 7 import 'package:matcher/matcher.dart'; |
| 10 import 'package:matcher/src/pretty_print.dart'; | 8 import 'package:matcher/src/pretty_print.dart'; |
| 11 import 'package:test/test.dart' show group, test, expect; | 9 import 'package:test/test.dart' show group, test, expect; |
| 12 | 10 |
| 13 class DefaultToString {} | 11 class DefaultToString {} |
| 14 | 12 |
| 15 class CustomToString { | 13 class CustomToString { |
| 16 String toString() => "string representation"; | 14 String toString() => "string representation"; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 test("that's not a list", () { | 226 test("that's not a list", () { |
| 229 expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)), | 227 expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)), |
| 230 equals("MappedListIterable:[2, 4, 6, 8]")); | 228 equals("MappedListIterable:[2, 4, 6, 8]")); |
| 231 }); | 229 }); |
| 232 | 230 |
| 233 test("that's not a list and has a private name", () { | 231 test("that's not a list and has a private name", () { |
| 234 expect(prettyPrint(new _PrivateNameIterable()), equals("?:[1, 2, 3]")); | 232 expect(prettyPrint(new _PrivateNameIterable()), equals("?:[1, 2, 3]")); |
| 235 }); | 233 }); |
| 236 }); | 234 }); |
| 237 } | 235 } |
| OLD | NEW |