mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-21 09:40:13 +00:00
Move verbose tests out of line
This commit is contained in:
parent
b0ed808266
commit
1e19847af3
10 changed files with 91 additions and 77 deletions
|
@ -397,6 +397,8 @@ pub fn skip_slow_tests() -> bool {
|
|||
should_skip
|
||||
}
|
||||
|
||||
const REWRITE: bool = false;
|
||||
|
||||
/// Asserts that `expected` and `actual` strings are equal. If they differ only
|
||||
/// in trailing or leading whitespace the test won't fail and
|
||||
/// the contents of `actual` will be written to the file located at `path`.
|
||||
|
@ -412,7 +414,6 @@ fn assert_equal_text(expected: &str, actual: &str, path: &Path) {
|
|||
fs::write(path, actual).unwrap();
|
||||
return;
|
||||
}
|
||||
const REWRITE: bool = false;
|
||||
if REWRITE {
|
||||
println!("rewriting {}", pretty_path.display());
|
||||
fs::write(path, actual).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue