Updated the test to reflect how redirect keys should be absolute

This commit is contained in:
Michael-F-Bryan 2020-05-30 04:11:11 +08:00
parent 964a10ff29
commit 7b3e945a27
No known key found for this signature in database
GPG Key ID: E9C602B0D9A998DC
1 changed files with 2 additions and 2 deletions

View File

@ -519,9 +519,9 @@ fn redirects_are_emitted_correctly() {
// override the "outputs.html.redirect" table // override the "outputs.html.redirect" table
let redirects: HashMap<PathBuf, String> = vec![ let redirects: HashMap<PathBuf, String> = vec![
(PathBuf::from("overview.html"), String::from("index.html")), (PathBuf::from("/overview.html"), String::from("index.html")),
( (
PathBuf::from("nexted/page.md"), PathBuf::from("/nexted/page.md"),
String::from("https://rust-lang.org/"), String::from("https://rust-lang.org/"),
), ),
] ]