| Index: pkg/matcher/test/pretty_print_unminified_test.dart
|
| diff --git a/pkg/matcher/test/pretty_print_unminified_test.dart b/pkg/matcher/test/pretty_print_unminified_test.dart
|
| index 5f46fd792aec7792c6d00ccae5bbffbc2d01bc96..81e7db52252274fdfdaed45cfad08b0b93504ca4 100644
|
| --- a/pkg/matcher/test/pretty_print_unminified_test.dart
|
| +++ b/pkg/matcher/test/pretty_print_unminified_test.dart
|
| @@ -7,11 +7,13 @@
|
| // will be mangled. A version of this file that works in minified dart2js is in
|
| // pretty_print_minified_test.dart.
|
|
|
| +library matcher.print_unminified_test;
|
| +
|
| import 'dart:collection';
|
| -import 'package:unittest/unittest.dart' as ut;
|
|
|
| import 'package:matcher/matcher.dart';
|
| import 'package:matcher/src/pretty_print.dart';
|
| +import 'package:unittest/unittest.dart' show test, group;
|
|
|
| class DefaultToString {}
|
|
|
| @@ -28,30 +30,30 @@ class _PrivateNameIterable extends IterableMixin {
|
| }
|
|
|
| void main() {
|
| - ut.group('with an object', () {
|
| - ut.test('with a default [toString]', () {
|
| + group('with an object', () {
|
| + test('with a default [toString]', () {
|
| expect(prettyPrint(new DefaultToString()),
|
| equals("<Instance of 'DefaultToString'>"));
|
| });
|
|
|
| - ut.test('with a custom [toString]', () {
|
| + test('with a custom [toString]', () {
|
| expect(prettyPrint(new CustomToString()),
|
| equals('CustomToString:<string representation>'));
|
| });
|
|
|
| - ut.test('with a custom [toString] and a private name', () {
|
| + test('with a custom [toString] and a private name', () {
|
| expect(prettyPrint(new _PrivateName()),
|
| equals('?:<string representation>'));
|
| });
|
| });
|
|
|
| - ut.group('with an iterable', () {
|
| - ut.test("that's not a list", () {
|
| + group('with an iterable', () {
|
| + test("that's not a list", () {
|
| expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)),
|
| equals("MappedListIterable:[2, 4, 6, 8]"));
|
| });
|
|
|
| - ut.test("that's not a list and has a private name", () {
|
| + test("that's not a list and has a private name", () {
|
| expect(prettyPrint(new _PrivateNameIterable()),
|
| equals("?:[1, 2, 3]"));
|
| });
|
|
|