| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.enums; | 5 library test.enums; |
| 6 | 6 |
| 7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
| 8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
| 9 import 'stringify.dart'; | 9 import 'stringify.dart'; |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 Expect.equals("Suite.HEARTS", | 39 Expect.equals("Suite.HEARTS", |
| 40 reflect(Suite.HEARTS).invoke(#toString, []).reflectee); | 40 reflect(Suite.HEARTS).invoke(#toString, []).reflectee); |
| 41 | 41 |
| 42 Expect.setEquals( | 42 Expect.setEquals( |
| 43 ['Variable(s(index) in s(Suite), final)', | 43 ['Variable(s(index) in s(Suite), final)', |
| 44 'Variable(s(CLUBS) in s(Suite), static, final)', | 44 'Variable(s(CLUBS) in s(Suite), static, final)', |
| 45 'Variable(s(DIAMONDS) in s(Suite), static, final)', | 45 'Variable(s(DIAMONDS) in s(Suite), static, final)', |
| 46 'Variable(s(SPADES) in s(Suite), static, final)', | 46 'Variable(s(SPADES) in s(Suite), static, final)', |
| 47 'Variable(s(HEARTS) in s(Suite), static, final)', | 47 'Variable(s(HEARTS) in s(Suite), static, final)', |
| 48 'Variable(s(values) in s(Suite), static, final)', | 48 'Variable(s(values) in s(Suite), static, final)', |
| 49 'Method(s(hashCode) in s(Suite), getter)', |
| 49 'Method(s(toString) in s(Suite))'], | 50 'Method(s(toString) in s(Suite))'], |
| 50 reflectClass(Suite).declarations.values | 51 reflectClass(Suite).declarations.values |
| 51 .where((d) => !d.isPrivate).map(stringify)); | 52 .where((d) => !d.isPrivate).map(stringify)); |
| 52 } | 53 } |
| OLD | NEW |