mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
Move test data to test_data directory
This commit is contained in:
parent
adf624b433
commit
05d67a9a0e
8 changed files with 7 additions and 7 deletions
|
@ -39,7 +39,7 @@ macro_rules! expect {
|
|||
[[]] => { $crate::expect![[""]] };
|
||||
}
|
||||
|
||||
/// expect_file!["/crates/foo/test_data/foo.rs"]
|
||||
/// expect_file!["/crates/foo/test_data/bar.html"]
|
||||
#[macro_export]
|
||||
macro_rules! expect_file {
|
||||
[$path:literal] => {$crate::ExpectFile { path: $path }};
|
||||
|
|
|
@ -92,7 +92,7 @@ impl<T> Option<T> {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ra_ide/src/snapshots/highlighting.html"],
|
||||
expect_file!["crates/ra_ide/test_data/highlighting.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ fn bar() {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ra_ide/src/snapshots/rainbow_highlighting.html"],
|
||||
expect_file!["crates/ra_ide/test_data/rainbow_highlighting.html"],
|
||||
true,
|
||||
);
|
||||
}
|
||||
|
@ -168,7 +168,7 @@ fn main() {
|
|||
);
|
||||
}"##
|
||||
.trim(),
|
||||
expect_file!["crates/ra_ide/src/snapshots/highlight_injection.html"],
|
||||
expect_file!["crates/ra_ide/test_data/highlight_injection.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -251,7 +251,7 @@ fn main() {
|
|||
println!("{ничоси}", ничоси = 92);
|
||||
}"#
|
||||
.trim(),
|
||||
expect_file!["crates/ra_ide/src/snapshots/highlight_strings.html"],
|
||||
expect_file!["crates/ra_ide/test_data/highlight_strings.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -279,7 +279,7 @@ fn main() {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ra_ide/src/snapshots/highlight_unsafe.html"],
|
||||
expect_file!["crates/ra_ide/test_data/highlight_unsafe.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
@ -355,7 +355,7 @@ macro_rules! noop {
|
|||
}
|
||||
"#
|
||||
.trim(),
|
||||
expect_file!["crates/ra_ide/src/snapshots/highlight_doctest.html"],
|
||||
expect_file!["crates/ra_ide/test_data/highlight_doctest.html"],
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue