OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library test.constructor_test; | 5 library test.constructor_test; |
6 | 6 |
7 @MirrorsUsed(targets: const [A]) | 7 @MirrorsUsed(targets: const [A]) |
8 import 'dart:mirrors'; | 8 import 'dart:mirrors'; |
9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 Expect.equals('B(x=x, y=y, z=z)', '$m1', 'more 1'); | 54 Expect.equals('B(x=x, y=y, z=z)', '$m1', 'more 1'); |
55 Expect.equals('B(x=1, y=y, z=z)', '$m2', 'more 2'); | 55 Expect.equals('B(x=1, y=y, z=z)', '$m2', 'more 2'); |
56 Expect.equals('B(x=2, y=3, z=z)', '$m3', 'more 3'); | 56 Expect.equals('B(x=2, y=3, z=z)', '$m3', 'more 3'); |
57 | 57 |
58 var o1 = cm.newInstance(const Symbol('oneMore'), [1]).reflectee; | 58 var o1 = cm.newInstance(const Symbol('oneMore'), [1]).reflectee; |
59 var o2 = cm.newInstance(const Symbol('oneMore'), [2, 3]).reflectee; | 59 var o2 = cm.newInstance(const Symbol('oneMore'), [2, 3]).reflectee; |
60 | 60 |
61 Expect.equals('B(x=1, y=y, z=z)', '$o1', 'oneMore one arg'); | 61 Expect.equals('B(x=1, y=y, z=z)', '$o1', 'oneMore one arg'); |
62 Expect.equals('B(x=2, y=3, z=z)', '$o2', 'oneMore two args'); | 62 Expect.equals('B(x=2, y=3, z=z)', '$o2', 'oneMore two args'); |
63 } | 63 } |
OLD | NEW |