(text: &str)
| 3548 | #[test] |
| 3549 | fn i16_as_hex() { |
| 3550 | fn parse_as_imm16(text: &str) -> ParseResult<i16> { |
| 3551 | Parser::new(text).match_imm16("unable to parse i16") |
| 3552 | } |
| 3553 | |
| 3554 | assert_eq!(parse_as_imm16("0x8000").unwrap(), -32768); |
| 3555 | assert_eq!(parse_as_imm16("0xffff").unwrap(), -1); |
nothing calls this directly
no test coverage detected