mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
⬆️ expect-test
This commit is contained in:
parent
c9c0050fff
commit
c692b5d76d
26 changed files with 25 additions and 25 deletions
|
@ -144,7 +144,7 @@ impl<T> Option<T> {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ide/test_data/highlighting.html"],
|
||||
expect_file!["./test_data/highlighting.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -167,7 +167,7 @@ fn bar() {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ide/test_data/rainbow_highlighting.html"],
|
||||
expect_file!["./test_data/rainbow_highlighting.html"],
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
@ -220,7 +220,7 @@ fn main() {
|
|||
);
|
||||
}"##
|
||||
.trim(),
|
||||
expect_file!["crates/ide/test_data/highlight_injection.html"],
|
||||
expect_file!["./test_data/highlight_injection.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ fn main() {
|
|||
println!("{ничоси}", ничоси = 92);
|
||||
}"#
|
||||
.trim(),
|
||||
expect_file!["crates/ide/test_data/highlight_strings.html"],
|
||||
expect_file!["./test_data/highlight_strings.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -376,7 +376,7 @@ fn main() {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ide/test_data/highlight_unsafe.html"],
|
||||
expect_file!["./test_data/highlight_unsafe.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -452,7 +452,7 @@ macro_rules! noop {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ide/test_data/highlight_doctest.html"],
|
||||
expect_file!["./test_data/highlight_doctest.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -469,7 +469,7 @@ fn test_extern_crate() {
|
|||
//- /alloc/lib.rs
|
||||
pub struct A
|
||||
"#,
|
||||
expect_file!["crates/ide/test_data/highlight_extern_crate.html"],
|
||||
expect_file!["./test_data/highlight_extern_crate.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue