parse(&[envelope(&[b"ord", &[2], &[1], &[2], &[0]])]), vec![ParsedEnvelope { payload: Inscription { pointer: Some(vec![1]), duplicate_field: true, unrecognized_even_field: true, ..Default::default() }, ..Default::default() }], ); } #[test] fn incomplete_field() { assert_eq!( parse(&[envelope(&[b"ord", &[99]])]), vec![ParsedEnvelope { payload: Inscription { incomplete_field: true, ..Default::default() }, ..Default::default() }], ); } #[test] fn metadata_is_parsed_correctly() { assert_eq!( parse(&[envelope(&[b"ord", &[5], &[]])]), vec![ParsedEnvelope { payload: Inscription { metadata: Some(vec![]), ..Default::default() }, ..Default::default() }] ); } #[test] fn metadata_is_parsed_correctly_from_chunks() { assert_eq!( parse(&[envelope(&[b"ord", &[5], &[0], &[5], &[1]])]),