mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
move test
This commit is contained in:
parent
b21244e080
commit
574df660e4
3 changed files with 27 additions and 22 deletions
|
@ -209,28 +209,6 @@ fn test_expr_order() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_fail_match_pattern_by_first_token() {
|
||||
parse_macro(
|
||||
r#"
|
||||
macro_rules! foo {
|
||||
($ i:ident) => (
|
||||
mod $ i {}
|
||||
);
|
||||
(= $ i:ident) => (
|
||||
fn $ i() {}
|
||||
);
|
||||
(+ $ i:ident) => (
|
||||
struct $ i;
|
||||
)
|
||||
}
|
||||
"#,
|
||||
)
|
||||
.assert_expand_items("foo! { foo }", "mod foo {}")
|
||||
.assert_expand_items("foo! { = bar }", "fn bar () {}")
|
||||
.assert_expand_items("foo! { + Baz }", "struct Baz ;");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_fail_match_pattern_by_last_token() {
|
||||
parse_macro(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue