()
| 406 | |
| 407 | #[test] |
| 408 | fn parses_name_and_changes() { |
| 409 | let cmd = Split::try_parse_from(["split", "wip", "ABCD", "EF12"]).unwrap(); |
| 410 | assert_eq!(cmd.name, "wip"); |
| 411 | assert_eq!(cmd.changes, vec!["ABCD".to_string(), "EF12".to_string()]); |
| 412 | assert!(cmd.last.is_none()); |
| 413 | assert!(!cmd.cascade); |
| 414 | assert!(!cmd.dry_run); |
| 415 | assert!(!cmd.switch); |
| 416 | assert!(!cmd.confirm); |
| 417 | } |
| 418 | |
| 419 | #[test] |
| 420 | fn parses_flags() { |