Skip to content

Commit a1f58cd

Browse files
authored
Merge pull request #224 from Muscraft/adjust-spans
test: Adjust spans to match original test spans
2 parents 8882929 + eb800f6 commit a1f58cd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/formatter.rs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,7 +1519,7 @@ fn main() {}"#;
15191519
.element(
15201520
Snippet::source(source)
15211521
.fold(true)
1522-
.patch(Patch::new(52..86, "")),
1522+
.patch(Patch::new(52..85, "")),
15231523
),
15241524
);
15251525
let expected = str![[r#"
@@ -1537,7 +1537,6 @@ LL - T
15371537
LL - :
15381538
LL - ?
15391539
LL - Sized
1540-
LL + {
15411540
|
15421541
"#]];
15431542
let renderer = Renderer::plain().anonymized_line_numbers(true);
@@ -1619,8 +1618,8 @@ fn main() {}"#;
16191618
).element(
16201619
Snippet::source(source)
16211620
.fold(true)
1622-
.patch(Patch::new(56..90, ""))
1623-
.patch(Patch::new(90..90, "+ Send"))
1621+
.patch(Patch::new(56..89, ""))
1622+
.patch(Patch::new(89..89, "+ Send"))
16241623
,
16251624
));
16261625
let expected = str![[r#"
@@ -1651,7 +1650,7 @@ LL - T
16511650
LL - :
16521651
LL - ?
16531652
LL - Sized
1654-
LL + and + Send{
1653+
LL + and + Send
16551654
|
16561655
"#]];
16571656
let renderer = Renderer::plain().anonymized_line_numbers(true);

0 commit comments

Comments
 (0)