| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // VMOptions=--import_map=GOOGLE,. --import_map=SRC,mysrc --import_map=DART,. | 5 // VMOptions=--import_map=GOOGLE,. --import_map=SRC,mysrc --import_map=DART,. |
| 6 // | 6 // |
| 7 // Dart test program for checking implementation of string | 7 // Dart test program for checking implementation of string |
| 8 // interapolation feature in import statements. | 8 // interapolation feature in import statements. |
| 9 | 9 |
| 10 #library('test1.dart'); | 10 #library('test1.dart'); |
| 11 | 11 |
| 12 #import('${GOOGLE}/$SRC/test2.dart'); | 12 #import('${GOOGLE}/$SRC/test2.dart'); |
| 13 #import('$SRC/test3.dart'); | 13 #import('$SRC/test3.dart'); |
| 14 | 14 |
| 15 int test1() { | 15 int test1() { |
| 16 return 1; | 16 return 1; |
| 17 } | 17 } |
| 18 | 18 |
| 19 main() { | 19 main() { |
| 20 var result = test1() + test2() + test3(); | 20 var result = test1() + test2() + test3(); |
| 21 Expect.equals(6, result); | 21 Expect.equals(6, result); |
| 22 } | 22 } |
| OLD | NEW |