File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,13 @@ macro_rules! testcases {
12
12
fn $name( ) {
13
13
$name:: $rule:: parse_with( $input, |parser, result| {
14
14
let result = format!( "{:#?}" , result. unwrap( ) ) ;
15
+ // FIXME(eddyb) Remove this trailing-comma-ignoring hack
16
+ // once rust-lang/rust#59076 reaches the stable channel.
17
+ let normalize = |s: & str | {
18
+ s. replace( ",\n " , "\n " )
19
+ } ;
15
20
assert!(
16
- result == $expected,
21
+ normalize ( & result) == normalize ( $expected) ,
17
22
"mismatched output, expected:\n {}\n \n found:\n {}" ,
18
23
$expected,
19
24
result
Original file line number Diff line number Diff line change @@ -111,8 +111,13 @@ Value::Object {
111
111
}
112
112
]
113
113
}" ;
114
+ // FIXME(eddyb) Remove this trailing-comma-ignoring hack
115
+ // once rust-lang/rust#59076 reaches the stable channel.
116
+ let normalize = |s : & str | {
117
+ s. replace ( ",\n " , "\n " )
118
+ } ;
114
119
assert ! (
115
- result == expected,
120
+ normalize ( & result) == normalize ( expected) ,
116
121
"mismatched output, expected:\n {}\n \n found:\n {}" ,
117
122
expected,
118
123
result
You can’t perform that action at this time.
0 commit comments