From 8913a0fe531e0660efa3238f997dc92e7ec1ef3b Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Wed, 30 Oct 2024 06:34:31 +0000 Subject: [PATCH] test: verify path_of normal behaviour --- src/tests/fs.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/tests/fs.rs b/src/tests/fs.rs index e15bdbb..afb396a 100644 --- a/src/tests/fs.rs +++ b/src/tests/fs.rs @@ -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 {