007033109d
Some test files were included, where only their data actually depended on line endings. Some tests didn't actually depend on line ending at all. (They may date back to a time where multiline strings didn't normalize their newlines.) Fix some syntax tests that had been formatted, and exempt all files depending on line endings from formatting. Change-Id: I6c003e9c4f03d3b2af102bfca59d4a7bc8e6d63f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/434380 Reviewed-by: Devon Carew <devoncarew@google.com> Commit-Queue: Lasse Nielsen <lrn@google.com>
42 lines
1.1 KiB
Dart
42 lines
1.1 KiB
Dart
// 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.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
void main() {
|
|
Expect.equals("abcd", r"abcd");
|
|
Expect.equals("", r"");
|
|
Expect.equals("", r'');
|
|
Expect.equals("", r"""""");
|
|
Expect.equals("", r'''''');
|
|
Expect.equals("''''", r"''''");
|
|
Expect.equals('""""', r'""""');
|
|
Expect.equals("1\n2\n3", r"""1
|
|
2
|
|
3""");
|
|
Expect.equals("1\n2\n3", r'''1
|
|
2
|
|
3''');
|
|
Expect.equals("1", r"""
|
|
1""");
|
|
Expect.equals("1", r'''
|
|
1''');
|
|
Expect.equals("'", r"'");
|
|
Expect.equals('"', r'"');
|
|
Expect.equals("1", r"1");
|
|
Expect.equals("1", r"1");
|
|
Expect.equals("\$", r"$");
|
|
Expect.equals("\\", r"\");
|
|
Expect.equals("\\", r'\');
|
|
Expect.equals("\${12}", r"${12}");
|
|
Expect.equals(
|
|
"\\a\\b\\c\\d\\e\\f\\g\\h\\i\\j\\k\\l\\m",
|
|
r"\a\b\c\d\e\f\g\h\i\j\k\l\m",
|
|
);
|
|
Expect.equals(
|
|
"\\n\\o\\p\\q\\r\\s\\t\\u\\v\\w\\x\\y\\z",
|
|
r"\n\o\p\q\r\s\t\u\v\w\x\y\z",
|
|
);
|
|
}
|