Skip to content

Commit 2afdf8d

Browse files
busgaidw2djc
authored andcommitted
Limit test sensitivity to macro pretty printing output
See rust-lang/rust#65207.
1 parent 9e96c7f commit 2afdf8d

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed
Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
{{
22
call_a_or_b_on_tail!(
3-
(a: compute_len, b: zero),
4-
the recursive part that skips over all these
5-
tokens doesn't much care whether we will call a
6-
or call b: only the terminal rules care.
3+
(a: compute_len, b: zero), call b: only the terminal rules care.
74
)
85
}}
96
{{
107
call_a_or_b_on_tail!(
11-
(a: compute_len, b: zero),
12-
and now, to justify the existence of two paths
13-
we will also call a: its input should somehow
14-
be self-referential, so let's make it return
15-
some ninety one!
8+
(a: compute_len, b: zero), call a: some ninety one!
169
)
1710
}}
1811
{{
1912
call_a_or_b_on_tail!(
20-
(a: compute_len, b: zero),
21-
and now, to justify the existence of two paths
22-
we will also call a: its input should somehow
23-
be self-referential, so let's make it return
24-
some ninety "(\"()"nine!
13+
(a: compute_len, b: zero), call a: some ninety "(\"()"nine!
2514
)
2615
}}

testing/tests/rust_macro.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ struct RustMacrosArgTemplate {}
4545
#[test]
4646
fn args() {
4747
let template = RustMacrosArgTemplate {};
48-
assert_eq!("0\n91\n99", template.render().unwrap());
48+
assert_eq!("0\n17\n25", template.render().unwrap());
4949
}

0 commit comments

Comments
 (0)