OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.test.enum_test; | 5 library analyzer.test.enum_test; |
6 | 6 |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 | 8 |
9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/error/error.dart'; |
10 import 'package:analyzer/src/dart/element/element.dart'; | 11 import 'package:analyzer/src/dart/element/element.dart'; |
11 import 'package:analyzer/src/generated/engine.dart'; | 12 import 'package:analyzer/src/generated/engine.dart'; |
12 import 'package:analyzer/src/generated/error.dart'; | |
13 import 'package:analyzer/src/generated/java_core.dart'; | 13 import 'package:analyzer/src/generated/java_core.dart'; |
14 import 'package:analyzer/src/generated/resolver.dart'; | 14 import 'package:analyzer/src/generated/resolver.dart'; |
15 import 'package:analyzer/src/generated/source.dart'; | 15 import 'package:analyzer/src/generated/source.dart'; |
16 import 'package:analyzer/src/generated/utilities_dart.dart'; | 16 import 'package:analyzer/src/generated/utilities_dart.dart'; |
17 import 'package:test_reflective_loader/test_reflective_loader.dart'; | 17 import 'package:test_reflective_loader/test_reflective_loader.dart'; |
18 import 'package:unittest/unittest.dart'; | 18 import 'package:unittest/unittest.dart'; |
19 | 19 |
20 import 'utils.dart'; | 20 import 'utils.dart'; |
21 | 21 |
22 void main() { | 22 void main() { |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 // Check that the set of ordinals runs from 0 to N-1, where N is the number | 202 // Check that the set of ordinals runs from 0 to N-1, where N is the number |
203 // of enumerated values. | 203 // of enumerated values. |
204 Set<int> expectedOrdinals = new Set<int>(); | 204 Set<int> expectedOrdinals = new Set<int>(); |
205 for (int i = 0; i < numValues; i++) { | 205 for (int i = 0; i < numValues; i++) { |
206 expectedOrdinals.add(i); | 206 expectedOrdinals.add(i); |
207 } | 207 } |
208 expect(ordinals.keys.toSet(), equals(expectedOrdinals)); | 208 expect(ordinals.keys.toSet(), equals(expectedOrdinals)); |
209 } | 209 } |
210 } | 210 } |
OLD | NEW |