| Index: pkg/unittest/test/pretty_print_test.dart
|
| diff --git a/pkg/unittest/test/pretty_print_test.dart b/pkg/unittest/test/pretty_print_test.dart
|
| index 7d5eda90ae8b17dbba8a562de4a91df246baad8a..e5cd2e2c61f3c960e039f3559fc7a70415e57347 100644
|
| --- a/pkg/unittest/test/pretty_print_test.dart
|
| +++ b/pkg/unittest/test/pretty_print_test.dart
|
| @@ -2,25 +2,9 @@
|
| // 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.
|
|
|
| -import 'dart:collection';
|
| -
|
| import 'package:unittest/src/pretty_print.dart';
|
| import 'package:unittest/unittest.dart';
|
|
|
| -class DefaultToString {}
|
| -
|
| -class CustomToString {
|
| - String toString() => "string representation";
|
| -}
|
| -
|
| -class _PrivateName {
|
| - String toString() => "string representation";
|
| -}
|
| -
|
| -class _PrivateNameIterable extends IterableMixin {
|
| - Iterator get iterator => [1, 2, 3].iterator;
|
| -}
|
| -
|
| void main() {
|
| test('with primitive objects', () {
|
| expect(prettyPrint(12), equals('<12>'));
|
| @@ -31,21 +15,6 @@ void main() {
|
| matches(r'<Closure(: \(dynamic\) => dynamic)?>'));
|
| });
|
|
|
| - test('with an object with a default [toString]', () {
|
| - expect(prettyPrint(new DefaultToString()),
|
| - equals("<Instance of 'DefaultToString'>"));
|
| - });
|
| -
|
| - test('with an object with a custom [toString]', () {
|
| - expect(prettyPrint(new CustomToString()),
|
| - equals('CustomToString:<string representation>'));
|
| - });
|
| -
|
| - test('with an object with a custom [toString] and a private name', () {
|
| - expect(prettyPrint(new _PrivateName()),
|
| - equals('?:<string representation>'));
|
| - });
|
| -
|
| group('with a string', () {
|
| test('containing simple characters', () {
|
| expect(prettyPrint('foo'), equals("'foo'"));
|
| @@ -132,16 +101,6 @@ void main() {
|
| equals("[0, 1, 2, 3, 4, 5, 6, 7, ...]"));
|
| });
|
|
|
| - test("that's not a list", () {
|
| - expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)),
|
| - equals("MappedListIterable:[2, 4, 6, 8]"));
|
| - });
|
| -
|
| - test("that's not a list and has a private name", () {
|
| - expect(prettyPrint(new _PrivateNameIterable()),
|
| - equals("?:[1, 2, 3]"));
|
| - });
|
| -
|
| test("that's recursive", () {
|
| var list = [1, 2, 3];
|
| list.add(list);
|
|
|