mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +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![[""]] };
|
[[]] => { $crate::expect![[""]] };
|
||||||
}
|
}
|
||||||
|
|
||||||
/// expect_file!["/crates/foo/test_data/foo.rs"]
|
/// expect_file!["/crates/foo/test_data/bar.html"]
|
||||||
#[macro_export]
|
#[macro_export]
|
||||||
macro_rules! expect_file {
|
macro_rules! expect_file {
|
||||||
[$path:literal] => {$crate::ExpectFile { path: $path }};
|
[$path:literal] => {$crate::ExpectFile { path: $path }};
|
||||||
|
|
|
@ -92,7 +92,7 @@ impl<T> Option<T> {
|
||||||
}
|
}
|
||||||
"#
|
"#
|
||||||
.trim(),
|
.trim(),
|
||||||
expect_file!["crates/ra_ide/src/snapshots/highlighting.html"],
|
expect_file!["crates/ra_ide/test_data/highlighting.html"],
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ fn bar() {
|
||||||
}
|
}
|
||||||
"#
|
"#
|
||||||
.trim(),
|
.trim(),
|
||||||
expect_file!["crates/ra_ide/src/snapshots/rainbow_highlighting.html"],
|
expect_file!["crates/ra_ide/test_data/rainbow_highlighting.html"],
|
||||||
true,
|
true,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -168,7 +168,7 @@ fn main() {
|
||||||
);
|
);
|
||||||
}"##
|
}"##
|
||||||
.trim(),
|
.trim(),
|
||||||
expect_file!["crates/ra_ide/src/snapshots/highlight_injection.html"],
|
expect_file!["crates/ra_ide/test_data/highlight_injection.html"],
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -251,7 +251,7 @@ fn main() {
|
||||||
println!("{ничоси}", ничоси = 92);
|
println!("{ничоси}", ничоси = 92);
|
||||||
}"#
|
}"#
|
||||||
.trim(),
|
.trim(),
|
||||||
expect_file!["crates/ra_ide/src/snapshots/highlight_strings.html"],
|
expect_file!["crates/ra_ide/test_data/highlight_strings.html"],
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -279,7 +279,7 @@ fn main() {
|
||||||
}
|
}
|
||||||
"#
|
"#
|
||||||
.trim(),
|
.trim(),
|
||||||
expect_file!["crates/ra_ide/src/snapshots/highlight_unsafe.html"],
|
expect_file!["crates/ra_ide/test_data/highlight_unsafe.html"],
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -355,7 +355,7 @@ macro_rules! noop {
|
||||||
}
|
}
|
||||||
"#
|
"#
|
||||||
.trim(),
|
.trim(),
|
||||||
expect_file!["crates/ra_ide/src/snapshots/highlight_doctest.html"],
|
expect_file!["crates/ra_ide/test_data/highlight_doctest.html"],
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue