Index: pkg/matcher/test/pretty_print_unminified_test.dart |
diff --git a/pkg/unittest/test/pretty_print_unminified_test.dart b/pkg/matcher/test/pretty_print_unminified_test.dart |
similarity index 74% |
copy from pkg/unittest/test/pretty_print_unminified_test.dart |
copy to pkg/matcher/test/pretty_print_unminified_test.dart |
index 4417bcbfd76660e85a5e25fb76b2aa731a43b7c5..5f46fd792aec7792c6d00ccae5bbffbc2d01bc96 100644 |
--- a/pkg/unittest/test/pretty_print_unminified_test.dart |
+++ b/pkg/matcher/test/pretty_print_unminified_test.dart |
@@ -8,9 +8,10 @@ |
// pretty_print_minified_test.dart. |
import 'dart:collection'; |
+import 'package:unittest/unittest.dart' as ut; |
-import 'package:unittest/src/pretty_print.dart'; |
-import 'package:unittest/unittest.dart'; |
+import 'package:matcher/matcher.dart'; |
+import 'package:matcher/src/pretty_print.dart'; |
class DefaultToString {} |
@@ -27,30 +28,30 @@ class _PrivateNameIterable extends IterableMixin { |
} |
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()), |
equals("<Instance of 'DefaultToString'>")); |
}); |
- test('with a custom [toString]', () { |
+ ut.test('with a custom [toString]', () { |
expect(prettyPrint(new CustomToString()), |
equals('CustomToString:<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()), |
equals('?:<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)), |
equals("MappedListIterable:[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()), |
equals("?:[1, 2, 3]")); |
}); |