| Index: tests/lib_strong/mirrors/constructors_test.dart
|
| diff --git a/tests/lib_strong/mirrors/constructors_test.dart b/tests/lib_strong/mirrors/constructors_test.dart
|
| index ac13e3b218008b99d895a5500b2346b9d9a26640..9bdbc7fb9aed4771e9cbb5db8e7a2d4b1324672d 100644
|
| --- a/tests/lib_strong/mirrors/constructors_test.dart
|
| +++ b/tests/lib_strong/mirrors/constructors_test.dart
|
| @@ -12,14 +12,13 @@ import 'stringify.dart';
|
|
|
| constructorsOf(ClassMirror cm) {
|
| var result = new Map();
|
| - cm.declarations.forEach((k,v) {
|
| - if(v is MethodMirror && v.isConstructor) result[k] = v;
|
| + cm.declarations.forEach((k, v) {
|
| + if (v is MethodMirror && v.isConstructor) result[k] = v;
|
| });
|
| return result;
|
| }
|
|
|
| -class Foo {
|
| -}
|
| +class Foo {}
|
|
|
| class Bar {
|
| Bar();
|
| @@ -47,10 +46,11 @@ main() {
|
| expect('{Foo: Method(s(Foo) in s(Foo), constructor)}', fooConstructors);
|
| expect('{Bar: Method(s(Bar) in s(Bar), constructor)}', barConstructors);
|
| expect('{Baz.named: Method(s(Baz.named) in s(Baz), constructor)}',
|
| - bazConstructors);
|
| - expect('{Biz: Method(s(Biz) in s(Biz), constructor),'
|
| - ' Biz.named: Method(s(Biz.named) in s(Biz), constructor)}',
|
| - bizConstructors);
|
| + bazConstructors);
|
| + expect(
|
| + '{Biz: Method(s(Biz) in s(Biz), constructor),'
|
| + ' Biz.named: Method(s(Biz.named) in s(Biz), constructor)}',
|
| + bizConstructors);
|
| print(bizConstructors);
|
|
|
| expect('[]', fooConstructors.values.single.parameters);
|
| @@ -60,13 +60,14 @@ main() {
|
| expect('[]', constructor.parameters);
|
| }
|
|
|
| - expect('[s()]',
|
| - fooConstructors.values.map((m) => m.constructorName).toList());
|
| - expect('[s()]',
|
| - barConstructors.values.map((m) => m.constructorName).toList());
|
| + expect(
|
| + '[s()]', fooConstructors.values.map((m) => m.constructorName).toList());
|
| + expect(
|
| + '[s()]', barConstructors.values.map((m) => m.constructorName).toList());
|
| expect('[s(named)]',
|
| - bazConstructors.values.map((m) => m.constructorName).toList());
|
| - expect('[s(), s(named)]',
|
| - bizConstructors.values.map((m) => m.constructorName).toList()
|
| - ..sort(compareSymbols));
|
| + bazConstructors.values.map((m) => m.constructorName).toList());
|
| + expect(
|
| + '[s(), s(named)]',
|
| + bizConstructors.values.map((m) => m.constructorName).toList()
|
| + ..sort(compareSymbols));
|
| }
|
|
|