Fix tests
This commit is contained in:
parent
f7f5545bdc
commit
2291c6e9c3
|
@ -7,7 +7,7 @@
|
||||||
- Switch to pulldown-cmark anchor rather than ours, some (very niche) edge cases are not supported anymore, you can
|
- Switch to pulldown-cmark anchor rather than ours, some (very niche) edge cases are not supported anymore, you can
|
||||||
also specify classes on headers now
|
also specify classes on headers now
|
||||||
- Now outputs empty taxonomies instead of ignoring them
|
- Now outputs empty taxonomies instead of ignoring them
|
||||||
- Unify all sorting variable names in templates to `lower`/`higher` in order to make it easy to re-use templates and it
|
- Unify all pages sorting variable names in templates to `lower`/`higher` in order to make it easy to re-use templates and it
|
||||||
was becoming hard to come up with names
|
was becoming hard to come up with names
|
||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
|
|
@ -772,11 +772,11 @@ mod tests {
|
||||||
library.fill_backlinks();
|
library.fill_backlinks();
|
||||||
|
|
||||||
assert_eq!(library.backlinks.len(), 3);
|
assert_eq!(library.backlinks.len(), 3);
|
||||||
assert_eq!(library.backlinks["page1.md"], set! {"_index.md".to_owned()});
|
assert_eq!(library.backlinks["page1.md"], set! {PathBuf::from("_index.md")});
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
library.backlinks["page2.md"],
|
library.backlinks["page2.md"],
|
||||||
set! {"page1.md".to_owned(), "_index.md".to_owned()}
|
set! {PathBuf::from("page1.md"), PathBuf::from("_index.md")}
|
||||||
);
|
);
|
||||||
assert_eq!(library.backlinks["_index.md"], set! {"page2.md".to_owned()});
|
assert_eq!(library.backlinks["_index.md"], set! {PathBuf::from("page2.md")});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue