()
| 663 | |
| 664 | #[test] |
| 665 | fn test_empty_input() { |
| 666 | let mut parser = OptionParser::new(); |
| 667 | parser.add("foo"); |
| 668 | parser.parse("").unwrap(); |
| 669 | parser.parse(" ").unwrap(); |
| 670 | assert!(!parser.is_set("foo")); |
| 671 | } |
| 672 | |
| 673 | #[test] |
| 674 | fn test_parse_subset_ignores_unknown() { |