()
| 320 | |
| 321 | #[test] |
| 322 | fn test_parse_command() { |
| 323 | let registry = CommandRegistry::new(); |
| 324 | |
| 325 | let result = registry.parse("/init my-project"); |
| 326 | assert!(result.is_some()); |
| 327 | |
| 328 | let (cmd, args) = result.unwrap(); |
| 329 | assert_eq!(cmd.name, "init"); |
| 330 | assert_eq!(args, vec!["my-project"]); |
| 331 | } |
| 332 | |
| 333 | #[test] |
| 334 | fn test_render_template() { |