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