assert_eq!(inscription.pointer, None); let inscription = Inscription::from_file( Chain::Mainnet, file.path(), None, Some(0), None, None, false, ) .unwrap(); assert_eq!(inscription.pointer, Some(Vec::new())); let inscription = Inscription::from_file( Chain::Mainnet, file.path(), None, Some(1), None, None, false, ) .unwrap(); assert_eq!(inscription.pointer, Some(vec![1])); let inscription = Inscription::from_file( Chain::Mainnet, file.path(), None, Some(256), None, None, false, ) .unwrap(); assert_eq!(inscription.pointer, Some(vec![0, 1])); } #[test] fn hidden() { #[track_caller] fn case(content_type: Option<&str>, body: Option<&str>, expected: bool) { assert_eq!( Inscription { content_type: content_type.map(|content_type| content_type.as_bytes().into()), body: body.map(|content_type| content_type.as_bytes().into()),