OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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"; | |
6 | |
7 abstract class Constants { | 5 abstract class Constants { |
8 static const int FIVE = 5; | 6 static const int FIVE = 5; |
9 } | 7 } |
10 | 8 |
11 class InterfaceConstantsTest { | 9 class InterfaceConstantsTest { |
12 InterfaceConstantsTest() {} | 10 InterfaceConstantsTest() {} |
13 | 11 |
14 static void testMain() { | 12 static void testMain() { |
15 Expect.equals(5, Constants.FIVE); | 13 Expect.equals(5, Constants.FIVE); |
16 } | 14 } |
17 } | 15 } |
18 | 16 |
19 main() { | 17 main() { |
20 InterfaceConstantsTest.testMain(); | 18 InterfaceConstantsTest.testMain(); |
21 } | 19 } |
OLD | NEW |