let tempdir = TempDir::new().unwrap(); let batch_path = tempdir.path().join("batch.yaml"); fs::write( &batch_path, "mode: shared-output\ninscriptions:\n- file: meow.wav\nunknown: 1.)what", ) .unwrap(); assert!(Batchfile::load(&batch_path) .unwrap_err() .to_string() .contains("unknown field `unknown`")); } #[test] fn batch_inscribe_with_parent() { let utxos = vec![ (outpoint(1), Amount::from_sat(10_000)), (outpoint(2), Amount::from_sat(50_000)), ]; let parent = inscription_id(1); let parent_info = ParentInfo { destination: change(3), id: parent, location: SatPoint { outpoint: outpoint(1), offset: 0, }, tx_out: TxOut { script_pubkey: change(0).script_pubkey(), value: 10000, }, }; let mut wallet_inscriptions = BTreeMap::new(); wallet_inscriptions.insert(parent_info.location, parent); let commit_address = change(1); let reveal_addresses = vec![recipient()];