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/proc_macro_srv/src/tests/mod.rs | |
parent | 3782c78d7558633be5483a04aa1c098fe76100b9 (diff) |
Swap assert_eq_text\!(expected, actual)
Diffstat (limited to 'crates/proc_macro_srv/src/tests/mod.rs')
-rw-r--r-- | crates/proc_macro_srv/src/tests/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/proc_macro_srv/src/tests/mod.rs b/crates/proc_macro_srv/src/tests/mod.rs index 1a827cbd7..fd54f8dfd 100644 --- a/crates/proc_macro_srv/src/tests/mod.rs +++ b/crates/proc_macro_srv/src/tests/mod.rs | |||
@@ -38,9 +38,9 @@ fn test_derive_proc_macro_list() { | |||
38 | let res = list("serde_derive", "1").join("\n"); | 38 | let res = list("serde_derive", "1").join("\n"); |
39 | 39 | ||
40 | assert_eq_text!( | 40 | assert_eq_text!( |
41 | &res, | ||
42 | r#"Serialize [CustomDerive] | 41 | r#"Serialize [CustomDerive] |
43 | Deserialize [CustomDerive]"# | 42 | Deserialize [CustomDerive]"#, |
43 | &res | ||
44 | ); | 44 | ); |
45 | } | 45 | } |
46 | 46 | ||
@@ -50,9 +50,9 @@ fn list_test_macros() { | |||
50 | let res = list("proc_macro_test", "0.0.0").join("\n"); | 50 | let res = list("proc_macro_test", "0.0.0").join("\n"); |
51 | 51 | ||
52 | assert_eq_text!( | 52 | assert_eq_text!( |
53 | &res, | ||
54 | r#"function_like_macro [FuncLike] | 53 | r#"function_like_macro [FuncLike] |
55 | attribute_macro [Attr] | 54 | attribute_macro [Attr] |
56 | DummyTrait [CustomDerive]"# | 55 | DummyTrait [CustomDerive]"#, |
56 | &res | ||
57 | ); | 57 | ); |
58 | } | 58 | } |