| Index: tests/compiler/dart2js/kernel/expressions_test.dart
|
| diff --git a/tests/compiler/dart2js/kernel/expressions_test.dart b/tests/compiler/dart2js/kernel/expressions_test.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7074c4cabd717f09f75015983660148b5905d31c
|
| --- /dev/null
|
| +++ b/tests/compiler/dart2js/kernel/expressions_test.dart
|
| @@ -0,0 +1,25 @@
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +import 'package:test/test.dart';
|
| +
|
| +import 'helper.dart' show check;
|
| +
|
| +main() {
|
| + group('string literals', () {
|
| + test('juxtaposition', () {
|
| + return check('main() { return "abc" "def"; }');
|
| + });
|
| + test('literal interpolation', () {
|
| + return check('main() { return "abc\${1}def"; }');
|
| + });
|
| + test('complex interpolation', () {
|
| + String code = '''
|
| +foo() => 1;
|
| +main() => "abc\${foo()}"
|
| + "\${foo()}def";''';
|
| + return check(code);
|
| + });
|
| + });
|
| +}
|
|
|