fix tests
This commit is contained in:
@@ -615,3 +615,23 @@ fn bar() {}
|
|||||||
"#]],
|
"#]],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_macro_2_0_panic_2015() {
|
||||||
|
check(
|
||||||
|
r#"
|
||||||
|
macro panic_2015 {
|
||||||
|
() => (),
|
||||||
|
(bar) => (),
|
||||||
|
}
|
||||||
|
panic_2015!(bar);
|
||||||
|
"#,
|
||||||
|
expect![[r#"
|
||||||
|
macro panic_2015 {
|
||||||
|
() => (),
|
||||||
|
(bar) => (),
|
||||||
|
}
|
||||||
|
|
||||||
|
"#]],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|||||||
@@ -101,21 +101,6 @@ fn test_attr_to_token_tree() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn test_macro_2_0_panic_2015() {
|
|
||||||
parse_macro2(
|
|
||||||
r#"
|
|
||||||
macro panic_2015 {
|
|
||||||
() => (
|
|
||||||
),
|
|
||||||
(bar) => (
|
|
||||||
),
|
|
||||||
}
|
|
||||||
"#,
|
|
||||||
)
|
|
||||||
.assert_expand_items("panic_2015!(bar);", "");
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_path() {
|
fn test_path() {
|
||||||
parse_macro(
|
parse_macro(
|
||||||
|
|||||||
Reference in New Issue
Block a user