From 8c76ce49e0b6184fb95c9b1ac75e1090787c951f 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..a5a6cdf 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 {