blob: d9a2224eebd3c368bb5be675cf6586c73623a990 [file] [log] [blame]
// Copyright (c) 2011, 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.
/**
* @assertion Adjacent strings are implicitly concatenated to form a single
* string literal.
* @description Checks that adjacent string literals form a single string
* literal.
* @author msyabro
*/
import '../../../Utils/expect.dart';
main() {
Expect.equals(2, 'a''b'.length);
Expect.equals(6, "123""456".length);
Expect.equals(3, ' ' " ".length);
Expect.equals(3, '1' '2' '3'.length);
Expect.equals(4, '''12''' """34""".length);
}