std_macro_extensions/path/
cfg.rs

1#[test]
2fn test() {
3    use crate::*;
4    let combined_path: String = join_paths!("/home/", "/user/", "/documents", "file.txt");
5    assert_eq!(combined_path, "/home/user/documents/file.txt");
6    let another_path: String = join_paths!("C:/", "/Program Files", "App");
7    assert_eq!(another_path, "C:/Program Files/App");
8}