Change summary
crates/acp_thread/src/mention.rs | 9 +++++++++
1 file changed, 9 insertions(+)
Detailed changes
@@ -506,6 +506,15 @@ mod tests {
assert_eq!(parsed.to_uri().to_string(), file_uri);
}
+ #[test]
+ fn test_directory_uri_inserts_trailing_slash() {
+ let uri = MentionUri::Directory {
+ abs_path: PathBuf::from(path!("/path/to/dir")),
+ };
+ let expected = uri!("file:///path/to/dir/");
+ assert_eq!(uri.to_uri().to_string(), expected);
+ }
+
#[test]
fn test_to_directory_uri_without_slash() {
let uri = MentionUri::Directory {