| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // Test program for array literals. | 4 // Test program for array literals. |
| 5 | 5 |
| 6 class ListLiteralTest { | 6 class ListLiteralTest { |
| 7 | 7 |
| 8 static final LAUREL = 1; | 8 static final LAUREL = 1; |
| 9 static final HARDY = 2; | 9 static final HARDY = 2; |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 Expect.equals(1, e2[0]); | 42 Expect.equals(1, e2[0]); |
| 43 Expect.equals(2.0, e2[1]); | 43 Expect.equals(2.0, e2[1]); |
| 44 Expect.equals(3, e2[2]); | 44 Expect.equals(3, e2[2]); |
| 45 Expect.equals(200000.0, e2[3]); | 45 Expect.equals(200000.0, e2[3]); |
| 46 } | 46 } |
| 47 } | 47 } |
| 48 | 48 |
| 49 main() { | 49 main() { |
| 50 ListLiteralTest.testMain(); | 50 ListLiteralTest.testMain(); |
| 51 } | 51 } |
| OLD | NEW |