blob: 74f6c085c391d982ac12d0b380a02eaa4755f65c [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 A single line comment begins with the token //.
* Everything between // and the end of line must be ignored by the Dart
* compiler unless the comment is a documentation comment.
* '//' ~(NEWLINE)* (NEWLINE)?
* ;
* @description Checks that unicode escape sequences in single-line comments
* are not converted to their corresponding characters.
* @author hlodvig
* @reviewer rodionov
import "../../../../Utils/expect.dart";
main() {
var c = "\u000A"; //Note: \u000A is Unicode representation of linefeed (LF)
Expect.equals("\n", c);