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

Side by Side Diff: tests/language/multiline_strings_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Note: This test relies on LF line endings in the source file. 5 // Note: This test relies on LF line endings in the source file.
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 8
9 main() { 9 main() {
10 Expect.equals('foo', ''' 10 Expect.equals(
11 'foo',
12 '''
11 foo'''); 13 foo''');
12 14
13 Expect.equals('\\\nfoo', '''\\ 15 Expect.equals(
16 '\\\nfoo',
17 '''\\
14 foo'''); 18 foo''');
15 19
16 Expect.equals('\t\nfoo', '''\t 20 Expect.equals(
21 '\t\nfoo',
22 '''\t
17 foo'''); 23 foo''');
18 24
19 Expect.equals('foo', '''\ 25 Expect.equals(
26 'foo',
27 '''\
20 foo'''); 28 foo''');
21 29
22 Expect.equals('foo', '''\ \ 30 Expect.equals(
31 'foo',
32 '''\ \
23 foo'''); 33 foo''');
24 34
25 Expect.equals(' \nfoo', '''\x20 35 Expect.equals(
36 ' \nfoo',
37 '''\x20
26 foo'''); 38 foo''');
27 39
28 String x = ' '; 40 String x = ' ';
29 Expect.equals(' \nfoo', '''$x 41 Expect.equals(
42 ' \nfoo',
43 '''$x
30 foo'''); 44 foo''');
31 45
32 Expect.equals('foo', r''' 46 Expect.equals(
47 'foo',
48 r'''
33 foo'''); 49 foo''');
34 50
35 Expect.equals('\\\\\nfoo', r'''\\ 51 Expect.equals(
52 '\\\\\nfoo',
53 r'''\\
36 foo'''); 54 foo''');
37 55
38 Expect.equals('\\t\nfoo', r'''\t 56 Expect.equals(
57 '\\t\nfoo',
58 r'''\t
39 foo'''); 59 foo''');
40 60
41 Expect.equals('foo', r'''\ 61 Expect.equals(
62 'foo',
63 r'''\
42 foo'''); 64 foo''');
43 65
44 Expect.equals('foo', r'''\ \ 66 Expect.equals(
67 'foo',
68 r'''\ \
45 foo'''); 69 foo''');
46 } 70 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698