| 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 | 4 |
| 5 import "package:expect/expect.dart"; |
| 6 |
| 5 // Tests map literals. | 7 // Tests map literals. |
| 6 | 8 |
| 7 class MapLiteralTest { | 9 class MapLiteralTest { |
| 8 MapLiteralTest() {} | 10 MapLiteralTest() {} |
| 9 | 11 |
| 10 static testMain() { | 12 static testMain() { |
| 11 var test = new MapLiteralTest(); | 13 var test = new MapLiteralTest(); |
| 12 test.testStaticInit(); | 14 test.testStaticInit(); |
| 13 test.testConstInit(); | 15 test.testConstInit(); |
| 14 } | 16 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 Expect.equals(2, map1["b"]); | 69 Expect.equals(2, map1["b"]); |
| 68 | 70 |
| 69 Expect.equals(1, map2["1"]); | 71 Expect.equals(1, map2["1"]); |
| 70 Expect.equals(2, map2["2"]); | 72 Expect.equals(2, map2["2"]); |
| 71 } | 73 } |
| 72 } | 74 } |
| 73 | 75 |
| 74 main() { | 76 main() { |
| 75 MapLiteralTest.testMain(); | 77 MapLiteralTest.testMain(); |
| 76 } | 78 } |
| OLD | NEW |