mirror of https://github.com/rust-lang/rust.git
Rollup merge of #76178 - matklad:et, r=Mark-Simulacrum
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:
commit
8d328d785f
|
@ -998,9 +998,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "expect-test"
|
name = "expect-test"
|
||||||
version = "0.1.0"
|
version = "1.0.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a3e383741ea1982866572109d1a8c807bd36aad91fca701489fdca56ef92b3b8"
|
checksum = "ceb96f3eaa0d4e8769c52dacfd4eb60183b817ed2f176171b3c691d5022b0f2e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"difference",
|
"difference",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
|
|
|
@ -20,4 +20,4 @@ doctest = false
|
||||||
unicode-xid = "0.2.0"
|
unicode-xid = "0.2.0"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
expect-test = "0.1"
|
expect-test = "1.0"
|
||||||
|
|
|
@ -18,4 +18,4 @@ tempfile = "3"
|
||||||
itertools = "0.8"
|
itertools = "0.8"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
expect-test = "0.1"
|
expect-test = "1.0"
|
||||||
|
|
|
@ -9,7 +9,7 @@ fn test_html_highlighting() {
|
||||||
write_code(&mut out, src);
|
write_code(&mut out, src);
|
||||||
format!("{}<pre><code>{}</code></pre>\n", STYLE, out)
|
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#"
|
const STYLE: &str = r#"
|
||||||
|
|
Loading…
Reference in New Issue