-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
47 additions
and
31 deletions.
There are no files selected for viewing
37 changes: 21 additions & 16 deletions
37
crates/ruff_python_formatter/resources/test/fixtures/ruff/statement/assert.py
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 |
---|---|---|
@@ -1,23 +1,28 @@ | ||
assert ( | ||
# Asserted | ||
assert True # Trailing same-line | ||
assert True is True # Trailing same-line | ||
assert 1, "Some string" # Trailing same-line | ||
assert aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa # Trailing same-line | ||
|
||
assert ( # Dangle1 | ||
# Dangle2 | ||
) | ||
|
||
# Some assert | ||
# Leading assert | ||
assert ( | ||
# Let's go inside | ||
True # Go around this | ||
# Below that | ||
), "Some string" # Outside this way | ||
# Passed all that | ||
# Leading test value | ||
True # Trailing test value same-line | ||
# Trailing test value own-line | ||
), "Some string" # Trailing msg same-line | ||
# Trailing assert | ||
|
||
# Dangle this here | ||
# Random dangler | ||
|
||
# Some assert | ||
# Leading assert | ||
assert ( | ||
# Let's go inside | ||
True # Go around this | ||
# Below that | ||
# Leading test value | ||
True # Trailing test value same-line | ||
# Trailing test value own-line | ||
|
||
# Dangle that there | ||
), "Some string" # Outside this way | ||
# Passed all that | ||
# Test dangler | ||
), "Some string" # Trailing msg same-line | ||
# Trailing assert |
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