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