| 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 for string interpolation | 7 // Tests for string interpolation |
| 6 class StringInterpolationTest { | 8 class StringInterpolationTest { |
| 7 | 9 |
| 8 StringInterpolationTest() {} | 10 StringInterpolationTest() {} |
| 9 | 11 |
| 10 static void m() {} | 12 static void m() {} |
| 11 | 13 |
| 12 static const int i = 1; | 14 static const int i = 1; |
| 13 static const String a = "<hi>"; | 15 static const String a = "<hi>"; |
| 14 | 16 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 74 } |
| 73 | 75 |
| 74 String embedMultipleFields() { | 76 String embedMultipleFields() { |
| 75 return "j = ${j}; k = ${k}"; | 77 return "j = ${j}; k = ${k}"; |
| 76 } | 78 } |
| 77 } | 79 } |
| 78 | 80 |
| 79 main() { | 81 main() { |
| 80 StringInterpolationTest.testMain(false); | 82 StringInterpolationTest.testMain(false); |
| 81 } | 83 } |
| OLD | NEW |