mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-01 20:20:32 +00:00
Add test for + encoding
This commit is contained in:
parent
a41e81c988
commit
2a4170eade
1 changed files with 6 additions and 0 deletions
|
|
@ -158,6 +158,12 @@ mod test {
|
|||
Base,
|
||||
};
|
||||
|
||||
#[test]
|
||||
fn test_create_uri_from_path() {
|
||||
let result = create_uri_from_path(&PathBuf::from("/README.md"), &None, "test+encoding").unwrap();
|
||||
assert_eq!(result.as_str(), "file:///test+encoding");
|
||||
}
|
||||
|
||||
fn load_fixture(filename: &str) -> String {
|
||||
let fixture_path = Path::new(env!("CARGO_MANIFEST_DIR"))
|
||||
.parent()
|
||||
|
|
|
|||
Loading…
Reference in a new issue