test: verify path_of normal behaviour
All checks were successful
Rust / build (map[name:nightly]) (push) Successful in 2m0s
Rust / build (map[name:stable]) (push) Successful in 4m30s
Release Please / Release-plz (push) Successful in 37s

This commit is contained in:
Paul Campbell 2024-10-30 06:34:31 +00:00
parent 2a5f47a9c9
commit 8c76ce49e0

View file

@ -15,6 +15,18 @@ mod path_of {
Ok(())
}
#[test]
fn matches_joins() -> TestResult {
let fs = fs::temp()?;
let joined = fs.base().join("foo").join("bar");
let path_of = fs.path_of("foo/bar".into())?;
assert_eq!(joined, path_of);
Ok(())
}
}
mod file {