mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
fix tests
This commit is contained in:
parent
4439cd8c68
commit
3a47dba761
2 changed files with 20 additions and 15 deletions
|
@ -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(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue