| Index: tests/lib/mirrors/constructors_test.dart
|
| diff --git a/tests/lib/mirrors/constructors_test.dart b/tests/lib/mirrors/constructors_test.dart
|
| index c224cb9bbf46a22efc9a6421e6f4f265150ccdc8..b9fa569b867768a429e67d2046bd0e767ede545a 100644
|
| --- a/tests/lib/mirrors/constructors_test.dart
|
| +++ b/tests/lib/mirrors/constructors_test.dart
|
| @@ -13,14 +13,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();
|
| @@ -48,10 +47,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);
|
| @@ -61,13 +61,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));
|
| }
|
|
|