blob: abe1ed492496e8dfd78fd184b7b08c4c6108136d [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 Strings support escape sequences for special characters. The
/// escapes are:
/// • \n for newline, equivalent to \x0A.
/// @description Checks that \n is equivalent to \x0A and newline.
/// @author msyabro
import '../../../Utils/expect.dart';
main() {
const escapeN = '\n';
const escapeX = '\x0A';
const newline = """
""";
const CheckIdentical(escapeN, escapeX);
const CheckIdentical(escapeN, newline);
}