fix tests

This commit is contained in:
Aleksey Kladov 2021-10-09 22:19:42 +03:00
parent 4439cd8c68
commit 3a47dba761
2 changed files with 20 additions and 15 deletions

View File

@ -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) => (),
}
"#]],
);
}

View File

@ -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(