| OLD | NEW |
| 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 } |
| OLD | NEW |