-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
40 columns | | ||
>>> single-line assert | ||
assert("some short string"); | ||
<<< | ||
assert("some short string"); | ||
>>> wrapped assert | ||
assert("some very long string that wraps"); | ||
<<< | ||
assert( | ||
"some very long string that wraps", | ||
); | ||
>>> single-line assert with message | ||
assert(true, "blah"); | ||
<<< | ||
assert(true, "blah"); | ||
>>> split assert with message before both | ||
assert(true, "looong string that wraps"); | ||
<<< | ||
assert( | ||
true, | ||
"looong string that wraps", | ||
); | ||
>>> split assert with message after first | ||
assert(veryLongCondition, "long string that wraps"); | ||
<<< | ||
assert( | ||
veryLongCondition, | ||
"long string that wraps", | ||
); | ||
>>> split assert with message at both | ||
assert(veryVeryVeryVeryVeryLongCondition, "long string that wraps"); | ||
<<< | ||
assert( | ||
veryVeryVeryVeryVeryLongCondition, | ||
"long string that wraps", | ||
); | ||
>>> split assert with trailing comma | ||
assert(condition,); | ||
<<< | ||
assert(condition); | ||
>>> split assert with trailing comma and message | ||
assert(condition, "some message",); | ||
<<< | ||
assert(condition, "some message"); | ||
>>> remove from assert arg list if unsplit | ||
assert( | ||
1, | ||
2, | ||
); | ||
<<< | ||
assert(1, 2); | ||
>>> add to assert arg list if split | ||
assert(longArgument1, veryLongArgument2); | ||
<<< | ||
assert( | ||
longArgument1, | ||
veryLongArgument2, | ||
); |