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