Skip to content

Commit

Permalink
Discard changes to crates/ruff_python_formatter/src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser authored Oct 26, 2023
1 parent 2b676e8 commit 6b356e8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions crates/ruff_python_formatter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,14 @@ if True:
#[test]
fn quick_test() {
let source = r#"
def foo():
while (
aaaaaaaaaaaaaaaaaaaaa(bbbbbbbb, cccccccccccccc) and dddddddddd < eeeeeeeeeeeeeee
):
pass
def main() -> None:
if True:
some_very_long_variable_name_abcdefghijk = Foo()
some_very_long_variable_name_abcdefghijk = some_very_long_variable_name_abcdefghijk[
some_very_long_variable_name_abcdefghijk.some_very_long_attribute_name
== "This is a very long string abcdefghijk"
]
"#;
let source_type = PySourceType::Python;
let (tokens, comment_ranges) = tokens_and_ranges(source, source_type).unwrap();
Expand Down

0 comments on commit 6b356e8

Please sign in to comment.