Add test for + encoding

This commit is contained in:
Matthias 2021-09-09 14:42:09 +02:00
parent a41e81c988
commit 2a4170eade

View file

@ -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()