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