MCPcopy Create free account
hub / github.com/coooodeer/parse-rust / test_parse_hex

Function test_parse_hex

src/parser.rs:717–723  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected