Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tests/language/string_literals_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/language/string_literals_test.dart
diff --git a/tests/language/string_literals_test.dart b/tests/language/string_literals_test.dart
index 4f7cc043e868855d03ddf34de1c779dc745916f5..6b4f4f50706653a0038273cdd6e513eecd3da8cd 100644
--- a/tests/language/string_literals_test.dart
+++ b/tests/language/string_literals_test.dart
@@ -5,9 +5,8 @@
import "package:expect/expect.dart";
main() {
- var expect = new String.fromCharCodes([
- 0, 0x0a, 0x0d, 0x7f, 0xff, 0xffff, 0xd800, 0xdc00, 0xdbff, 0xdfff
- ]);
+ var expect = new String.fromCharCodes(
+ [0, 0x0a, 0x0d, 0x7f, 0xff, 0xffff, 0xd800, 0xdc00, 0xdbff, 0xdfff]);
test(string) {
Expect.equals(expect, string);
}
@@ -29,10 +28,9 @@ main() {
\x0d\x7f\xff\uffff\ud800\udc00\udbff\udfff''');
// Extract code points from multi-character escape string.
test("\x00\x0a\x0d\x7f\xff\uffff"
- "${"\u{10000}"[0]}${"\u{10000}"[1]}"
- "${"\u{10FFFF}"[0]}${"\u{10FFFF}"[1]}");
- test("\x00\x0a\x0d\x7f\xff\uffff" +
- "\ud800" + "\udc00\udbff" + "\udfff");
+ "${"\u{10000}"[0]}${"\u{10000}"[1]}"
+ "${"\u{10FFFF}"[0]}${"\u{10FFFF}"[1]}");
+ test("\x00\x0a\x0d\x7f\xff\uffff" + "\ud800" + "\udc00\udbff" + "\udfff");
// Single line string over multiple lines with newlines inside interpolation.
test("\x00\x0a\x0d\x7f\xff${
""

Powered by Google App Engine
This is Rietveld 408576698