()
| 715 | |
| 716 | #[test] |
| 717 | fn test_parse_hex() { |
| 718 | let result = parse("Color: #{:x}", "Color: #FF00AA", false).unwrap(); |
| 719 | match &result.fixed[0] { |
| 720 | ParseValue::Int(v) => assert_eq!(*v, 0xFF00AA), |
| 721 | other => panic!("Expected Int, got {:?}", other), |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | #[test] |
| 726 | fn test_parse_escaped_braces() { |