()
| 1190 | |
| 1191 | #[test] |
| 1192 | fn test_init_unicode_path() { |
| 1193 | let temp = TempDir::new().unwrap(); |
| 1194 | let unicode_path = temp.path().join("项目"); |
| 1195 | std::fs::create_dir(&unicode_path).unwrap(); |
| 1196 | |
| 1197 | let init = Init::at_path(&unicode_path); |
| 1198 | let result = init.run(); |
| 1199 | if let Err(ref e) = result { |
| 1200 | eprintln!("Init unicode path failed: {:?}", e); |
| 1201 | } |
| 1202 | assert!(result.is_ok(), "Init should succeed: {:?}", result.err()); |
| 1203 | } |
| 1204 | |
| 1205 | #[test] |
| 1206 | fn test_init_path_with_spaces() { |