); } #[test] fn from_str() { assert_eq!( "1111111111111111111111111111111111111111111111111111111111111111i1" .parse::() .unwrap(), inscription_id(1), ); assert_eq!( "1111111111111111111111111111111111111111111111111111111111111111i4294967295" .parse::() .unwrap(), InscriptionId { txid: txid(1), index: 0xFFFFFFFF, }, ); assert_eq!( "1111111111111111111111111111111111111111111111111111111111111111i4294967295" .parse::() .unwrap(), InscriptionId { txid: txid(1), index: 0xFFFFFFFF, }, ); } #[test] fn from_str_bad_character() { assert_matches!( "→".parse::(), Err(ParseError::Character('→')), ); } #[test] fn from_str_bad_length() { assert_matches!("foo".parse::(), Err(ParseError::Length(3))); } #[test] fn from_str_bad_separator() { assert_matches!(