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

Side by Side Diff: test/splitting/statements.stmt

Issue 1589823004: Support messages in assert(). (Closed) Base URL: https://github.com/dart-lang/dart_style.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « lib/src/source_visitor.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 40 columns | 1 40 columns |
2 >>> single-line assert 2 >>> single-line assert
3 assert("some short string"); 3 assert("some short string");
4 <<< 4 <<<
5 assert("some short string"); 5 assert("some short string");
6 >>> wrapped assert 6 >>> wrapped assert
7 assert("some very long string that wraps"); 7 assert("some very long string that wraps");
8 <<< 8 <<<
9 assert( 9 assert(
10 "some very long string that wraps"); 10 "some very long string that wraps");
11 >>> single-line assert with message
12 assert(true, "blah");
13 <<<
14 assert(true, "blah");
15 >>> split assert with message before both
16 assert(true, "looong string that wraps");
17 <<<
18 assert(
19 true, "looong string that wraps");
20 >>> split assert with message after first
21 assert(veryLongCondition, "long string that wraps");
22 <<<
23 assert(veryLongCondition,
24 "long string that wraps");
25 >>> split assert with message at both
26 assert(veryVeryVeryVeryVeryLongCondition, "long string that wraps");
27 <<<
28 assert(
29 veryVeryVeryVeryVeryLongCondition,
30 "long string that wraps");
11 >>> split in do-while condition 31 >>> split in do-while condition
12 do {} while ("some long string that wraps"); 32 do {} while ("some long string that wraps");
13 <<< 33 <<<
14 do {} while ( 34 do {} while (
15 "some long string that wraps"); 35 "some long string that wraps");
16 >>> split in switch value 36 >>> split in switch value
17 switch ("a long string that must wrap") { 37 switch ("a long string that must wrap") {
18 case 0: 38 case 0:
19 return "ok"; 39 return "ok";
20 } 40 }
21 <<< 41 <<<
22 switch ( 42 switch (
23 "a long string that must wrap") { 43 "a long string that must wrap") {
24 case 0: 44 case 0:
25 return "ok"; 45 return "ok";
26 } 46 }
OLDNEW
« no previous file with comments | « lib/src/source_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698