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