Start refactoring ide_completion tests

This commit is contained in:
Lukas Wirth 2021-06-16 17:37:23 +02:00
parent f38770cd26
commit d338a80394
9 changed files with 306 additions and 251 deletions

View file

@ -105,21 +105,4 @@ mod tests {
check(r#"fn foo(x: i32) { ::foo$0 }"#, expect![[""]]);
check(r#"fn foo(x: i32) { ::$0 }"#, expect![[""]]);
}
#[test]
fn completes_snippets_in_items() {
check(
r#"
#[cfg(test)]
mod tests {
$0
}
"#,
expect![[r#"
sn tmod (Test module)
sn tfn (Test function)
sn macro_rules
"#]],
)
}
}