Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Side by Side Diff: tests/language/enum_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 6
7 enum Enum1 { _ } 7 enum Enum1 { _ }
8 enum Enum2 { A } 8 enum Enum2 { A }
9 enum Enum3 { B, C } 9 enum Enum3 { B, C }
10 enum Enum4 { D, E, } 10 enum Enum4 {
11 D,
12 E,
13 }
11 enum Enum5 { F, G, H } 14 enum Enum5 { F, G, H }
12 enum _Enum6 { I, _J } 15 enum _Enum6 { I, _J }
13 16
14 main() { 17 main() {
15 Expect.equals('Enum1._', Enum1._.toString()); 18 Expect.equals('Enum1._', Enum1._.toString());
16 Expect.equals(0, Enum1._.index); 19 Expect.equals(0, Enum1._.index);
17 Expect.listEquals([Enum1._], Enum1.values); 20 Expect.listEquals([Enum1._], Enum1.values);
18 Enum1.values.forEach(test1); 21 Enum1.values.forEach(test1);
19 22
20 Expect.equals('Enum2.A', Enum2.A.toString()); 23 Expect.equals('Enum2.A', Enum2.A.toString());
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 break; 107 break;
105 case Enum5.F: 108 case Enum5.F:
106 index = 0; 109 index = 0;
107 break; 110 break;
108 case Enum5.G: 111 case Enum5.G:
109 index = 1; 112 index = 1;
110 break; 113 break;
111 } 114 }
112 Expect.equals(e.index, index); 115 Expect.equals(e.index, index);
113 } 116 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698