fix tests
This commit is contained in:
parent
4439cd8c68
commit
3a47dba761
@ -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]
|
||||
fn test_path() {
|
||||
parse_macro(
|
||||
|
Loading…
x
Reference in New Issue
Block a user