(text: &str)
| 3569 | #[test] |
| 3570 | fn i32_as_hex() { |
| 3571 | fn parse_as_imm32(text: &str) -> ParseResult<i32> { |
| 3572 | Parser::new(text).match_imm32("unable to parse i32") |
| 3573 | } |
| 3574 | |
| 3575 | assert_eq!(parse_as_imm32("0x80000000").unwrap(), -2147483648); |
| 3576 | assert_eq!(parse_as_imm32("0xffffffff").unwrap(), -1); |
nothing calls this directly
no test coverage detected