diff options
author | yugo-horie <[email protected]> | 2021-01-16 04:30:26 +0000 |
---|---|---|
committer | yugo-horie <[email protected]> | 2021-01-16 04:30:26 +0000 |
commit | f273995a258bea08aead0efc46883d632270d9c4 (patch) | |
tree | 8f30a64ed4003eaffbe32aa00e65b2cbbda3493a /crates/hir_expand | |
parent | 3782c78d7558633be5483a04aa1c098fe76100b9 (diff) |
Swap assert_eq_text\!(expected, actual)
Diffstat (limited to 'crates/hir_expand')
-rw-r--r-- | crates/hir_expand/src/proc_macro.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir_expand/src/proc_macro.rs b/crates/hir_expand/src/proc_macro.rs index 1923daca5..75e950816 100644 --- a/crates/hir_expand/src/proc_macro.rs +++ b/crates/hir_expand/src/proc_macro.rs | |||
@@ -135,7 +135,6 @@ mod tests { | |||
135 | let result = format!("{:#?}", remove_derive_attrs(&tt).unwrap()); | 135 | let result = format!("{:#?}", remove_derive_attrs(&tt).unwrap()); |
136 | 136 | ||
137 | assert_eq_text!( | 137 | assert_eq_text!( |
138 | &result, | ||
139 | r#" | 138 | r#" |
140 | SUBTREE $ | 139 | SUBTREE $ |
141 | PUNCH # [alone] 0 | 140 | PUNCH # [alone] 0 |
@@ -150,7 +149,8 @@ SUBTREE $ | |||
150 | PUNCH : [alone] 19 | 149 | PUNCH : [alone] 19 |
151 | IDENT u32 20 | 150 | IDENT u32 20 |
152 | "# | 151 | "# |
153 | .trim() | 152 | .trim(), |
153 | &result | ||
154 | ); | 154 | ); |
155 | } | 155 | } |
156 | } | 156 | } |