Skip to content

Commit

Permalink
Revert quicktest changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaReiser committed Jul 10, 2023
1 parent 30c0e04 commit 14919f2
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions crates/ruff_python_formatter/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,14 +280,12 @@ if True:
#[test]
fn quick_test() {
let src = r#"
if True:
if True:
if True:
return _(
"qweasdzxcqweasdzxcqweasdzxcqweasdz"
+ "qweasdzxcqweasdzxcqweasdzxcqweas",
"qweasdzxcqweasdzxcqweasdzxcqweasdz",
) % {"reported_username": reported_username, "report_reason": report_reason}"#;
if [
aaaaaa,
BBBB,ccccccccc,ddddddd,eeeeeeeeee,ffffff
] & bbbbbbbbbbbbbbbbbbddddddddddddddddddddddddddddbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb:
...
"#;
// Tokenize once
let mut tokens = Vec::new();
let mut comment_ranges = CommentRangesBuilder::default();
Expand All @@ -314,10 +312,10 @@ if True:
// Uncomment the `dbg` to print the IR.
// Use `dbg_write!(f, []) instead of `write!(f, [])` in your formatting code to print some IR
// inside of a `Format` implementation
use ruff_formatter::FormatContext;
dbg!(formatted
.document()
.display(formatted.context().source_code()));
// use ruff_formatter::FormatContext;
// dbg!(formatted
// .document()
// .display(formatted.context().source_code()));
//
// dbg!(formatted
// .context()
Expand Down

0 comments on commit 14919f2

Please sign in to comment.