-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial conversion to snapshot tests * flatten the tests a bit more * remove redundant tests * add cat output for format * don't use snapshot tests for format * also add a test where `width` is directly passed --------- Co-authored-by: Michael Chirico <[email protected]>
- Loading branch information
1 parent
9945b10
commit 9146122
Showing
3 changed files
with
133 additions
and
8 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
# print.lint, print.lints support optional message wrapping : width = 10 | ||
|
||
Code | ||
print(lints, width = width) | ||
Output | ||
<text>:1:1: | ||
warning: | ||
[test_linter] | ||
The | ||
quick | ||
brown | ||
fox | ||
jumps | ||
over | ||
the | ||
lazy | ||
dog. | ||
a | ||
^ | ||
|
||
--- | ||
|
||
Code | ||
print(lints) | ||
Output | ||
<text>:1:1: | ||
warning: | ||
[test_linter] | ||
The | ||
quick | ||
brown | ||
fox | ||
jumps | ||
over | ||
the | ||
lazy | ||
dog. | ||
a | ||
^ | ||
|
||
# print.lint, print.lints support optional message wrapping : width = 20 | ||
|
||
Code | ||
print(lints, width = width) | ||
Output | ||
<text>:1:1: | ||
warning: | ||
[test_linter] | ||
The quick brown | ||
fox jumps over | ||
the lazy dog. | ||
a | ||
^ | ||
|
||
--- | ||
|
||
Code | ||
print(lints) | ||
Output | ||
<text>:1:1: | ||
warning: | ||
[test_linter] | ||
The quick brown | ||
fox jumps over | ||
the lazy dog. | ||
a | ||
^ | ||
|
||
# print.lint, print.lints support optional message wrapping : width = 40 | ||
|
||
Code | ||
print(lints, width = width) | ||
Output | ||
<text>:1:1: warning: [test_linter] The | ||
quick brown fox jumps over the lazy | ||
dog. | ||
a | ||
^ | ||
|
||
--- | ||
|
||
Code | ||
print(lints) | ||
Output | ||
<text>:1:1: warning: [test_linter] The | ||
quick brown fox jumps over the lazy | ||
dog. | ||
a | ||
^ | ||
|
||
# print.lint, print.lints support optional message wrapping : width = 80 | ||
|
||
Code | ||
print(lints, width = width) | ||
Output | ||
<text>:1:1: warning: [test_linter] The quick brown fox jumps over the lazy dog. | ||
a | ||
^ | ||
|
||
--- | ||
|
||
Code | ||
print(lints) | ||
Output | ||
<text>:1:1: warning: [test_linter] The quick brown fox jumps over the lazy dog. | ||
a | ||
^ | ||
|
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