mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 04:04:06 +00:00
Normalize tests
This commit is contained in:
parent
a40f78f92a
commit
96197e0873
@ -209,7 +209,6 @@ mod tests {
|
||||
fn test_completion_detail_from_macro_generated_struct_fn_doc_attr() {
|
||||
check_detail_and_documentation(
|
||||
r#"
|
||||
//- /lib.rs
|
||||
macro_rules! bar {
|
||||
() => {
|
||||
struct Bar;
|
||||
@ -235,7 +234,6 @@ mod tests {
|
||||
fn test_completion_detail_from_macro_generated_struct_fn_doc_comment() {
|
||||
check_detail_and_documentation(
|
||||
r#"
|
||||
//- /lib.rs
|
||||
macro_rules! bar {
|
||||
() => {
|
||||
struct Bar;
|
||||
@ -260,13 +258,7 @@ mod tests {
|
||||
#[test]
|
||||
fn test_no_completions_required() {
|
||||
// There must be no hint for 'in' keyword.
|
||||
check_no_completion(
|
||||
r#"
|
||||
fn foo() {
|
||||
for i i$0
|
||||
}
|
||||
"#,
|
||||
);
|
||||
check_no_completion(r#"fn foo() { for i i$0 }"#);
|
||||
// After 'in' keyword hints may be spawned.
|
||||
check_detail_and_documentation(
|
||||
r#"
|
||||
|
Loading…
Reference in New Issue
Block a user