| Index: pkg/matcher/test/pretty_print_minified_test.dart
|
| diff --git a/pkg/unittest/test/pretty_print_minified_test.dart b/pkg/matcher/test/pretty_print_minified_test.dart
|
| similarity index 76%
|
| copy from pkg/unittest/test/pretty_print_minified_test.dart
|
| copy to pkg/matcher/test/pretty_print_minified_test.dart
|
| index 16c5cd61ccf5fec5afad9bb197ba120cbf80f78b..07583598f79e4d949fad545d051b5e206f28ebed 100644
|
| --- a/pkg/unittest/test/pretty_print_minified_test.dart
|
| +++ b/pkg/matcher/test/pretty_print_minified_test.dart
|
| @@ -9,8 +9,10 @@
|
|
|
| import 'dart:collection';
|
|
|
| -import 'package:unittest/src/pretty_print.dart';
|
| -import 'package:unittest/unittest.dart';
|
| +import 'package:unittest/unittest.dart' as ut;
|
| +
|
| +import 'package:matcher/matcher.dart';
|
| +import 'package:matcher/src/pretty_print.dart';
|
|
|
| class DefaultToString {}
|
|
|
| @@ -30,30 +32,30 @@ class _PrivateNameIterable extends IterableMixin {
|
| final _minifiedName = r"[A-Za-z0-9]{1,3}";
|
|
|
| void main() {
|
| - group('with an object', () {
|
| - test('with a default [toString]', () {
|
| + ut.group('with an object', () {
|
| + ut.test('with a default [toString]', () {
|
| expect(prettyPrint(new DefaultToString()),
|
| matches(r"<Instance of '" + _minifiedName + r"'>"));
|
| });
|
|
|
| - test('with a custom [toString]', () {
|
| + ut.test('with a custom [toString]', () {
|
| expect(prettyPrint(new CustomToString()),
|
| matches(_minifiedName + r':<string representation>'));
|
| });
|
|
|
| - test('with a custom [toString] and a private name', () {
|
| + ut.test('with a custom [toString] and a private name', () {
|
| expect(prettyPrint(new _PrivateName()),
|
| matches(_minifiedName + r':<string representation>'));
|
| });
|
| });
|
|
|
| - group('with an iterable', () {
|
| - test("that's not a list", () {
|
| + ut.group('with an iterable', () {
|
| + ut.test("that's not a list", () {
|
| expect(prettyPrint([1, 2, 3, 4].map((n) => n * 2)),
|
| matches(_minifiedName + r":\[2, 4, 6, 8\]"));
|
| });
|
|
|
| - test("that's not a list and has a private name", () {
|
| + ut.test("that's not a list and has a private name", () {
|
| expect(prettyPrint(new _PrivateNameIterable()),
|
| matches(_minifiedName + r":\[1, 2, 3\]"));
|
| });
|
|
|