Skip to content

Commit 5716c3e

Browse files
committed
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.
1 parent 897ef3a commit 5716c3e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Cargo.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -998,9 +998,9 @@ dependencies = [
998998

999999
[[package]]
10001000
name = "expect-test"
1001-
version = "0.1.0"
1001+
version = "1.0.1"
10021002
source = "registry+https://github.com/rust-lang/crates.io-index"
1003-
checksum = "a3e383741ea1982866572109d1a8c807bd36aad91fca701489fdca56ef92b3b8"
1003+
checksum = "ceb96f3eaa0d4e8769c52dacfd4eb60183b817ed2f176171b3c691d5022b0f2e"
10041004
dependencies = [
10051005
"difference",
10061006
"once_cell",

compiler/rustc_lexer/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ doctest = false
2020
unicode-xid = "0.2.0"
2121

2222
[dev-dependencies]
23-
expect-test = "0.1"
23+
expect-test = "1.0"

src/librustdoc/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ tempfile = "3"
1818
itertools = "0.8"
1919

2020
[dev-dependencies]
21-
expect-test = "0.1"
21+
expect-test = "1.0"

src/librustdoc/html/highlight/tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn test_html_highlighting() {
99
write_code(&mut out, src);
1010
format!("{}<pre><code>{}</code></pre>\n", STYLE, out)
1111
};
12-
expect_file!["src/librustdoc/html/highlight/fixtures/sample.html"].assert_eq(&html);
12+
expect_file!["fixtures/sample.html"].assert_eq(&html);
1313
}
1414

1515
const STYLE: &str = r#"

0 commit comments

Comments
 (0)