mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
Update expect-test to 1.0
The only change is that `expect_file` now uses path relative to the current file (same as `include!`). Before, it used paths relative to the workspace root, which makes no sense.
This commit is contained in:
parent
897ef3a0ec
commit
5716c3e18d
@ -998,9 +998,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "expect-test"
|
||||
version = "0.1.0"
|
||||
version = "1.0.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a3e383741ea1982866572109d1a8c807bd36aad91fca701489fdca56ef92b3b8"
|
||||
checksum = "ceb96f3eaa0d4e8769c52dacfd4eb60183b817ed2f176171b3c691d5022b0f2e"
|
||||
dependencies = [
|
||||
"difference",
|
||||
"once_cell",
|
||||
|
@ -20,4 +20,4 @@ doctest = false
|
||||
unicode-xid = "0.2.0"
|
||||
|
||||
[dev-dependencies]
|
||||
expect-test = "0.1"
|
||||
expect-test = "1.0"
|
||||
|
@ -18,4 +18,4 @@ tempfile = "3"
|
||||
itertools = "0.8"
|
||||
|
||||
[dev-dependencies]
|
||||
expect-test = "0.1"
|
||||
expect-test = "1.0"
|
||||
|
@ -9,7 +9,7 @@ fn test_html_highlighting() {
|
||||
write_code(&mut out, src);
|
||||
format!("{}<pre><code>{}</code></pre>\n", STYLE, out)
|
||||
};
|
||||
expect_file!["src/librustdoc/html/highlight/fixtures/sample.html"].assert_eq(&html);
|
||||
expect_file!["fixtures/sample.html"].assert_eq(&html);
|
||||
}
|
||||
|
||||
const STYLE: &str = r#"
|
||||
|
Loading…
Reference in New Issue
Block a user