()
| 1068 | |
| 1069 | #[test] |
| 1070 | fn test_init_unicode_path() { |
| 1071 | let temp = TempDir::new().unwrap(); |
| 1072 | let unicode_path = temp.path().join("项目"); |
| 1073 | std::fs::create_dir(&unicode_path).unwrap(); |
| 1074 | |
| 1075 | let init = Init::at_path(&unicode_path); |
| 1076 | let result = init.run(); |
| 1077 | if let Err(ref e) = result { |
| 1078 | eprintln!("Init unicode path failed: {:?}", e); |
| 1079 | } |
| 1080 | assert!(result.is_ok(), "Init should succeed: {:?}", result.err()); |
| 1081 | } |
| 1082 | |
| 1083 | #[test] |
| 1084 | fn test_init_path_with_spaces() { |