) } #[test] fn insufficient_padding_to_add_postage_no_utxos() { let utxos = vec![(outpoint(1), Amount::from_sat(5_000))]; pretty_assert_eq!( TransactionBuilder::new( satpoint(1, 4_950), BTreeMap::new(), utxos.into_iter().collect(), BTreeSet::new(), recipient(), [change(0), change(1)], FeeRate::try_from(1.0).unwrap(), Target::Postage, ) .build_transaction(), Err(Error::NotEnoughCardinalUtxos), ) } #[test] fn insufficient_padding_to_add_postage_small_utxos() { let utxos = vec![ (outpoint(1), Amount::from_sat(5_000)), (outpoint(2), Amount::from_sat(1)), ]; pretty_assert_eq!( TransactionBuilder::new( satpoint(1, 4_950), BTreeMap::new(), utxos.into_iter().collect(), BTreeSet::new(), recipient(), [change(0), change(1)], FeeRate::try_from(1.0).unwrap(), Target::Postage ) .build_transaction(), Err(Error::NotEnoughCardinalUtxos),