use crate::{amount::*, value_balance::*}; use proptest::prelude::*; impl Arbitrary for ValueBalance { type Parameters = (); fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy { ( any::>(), any::>(), any::>(), any::>(), ) .prop_map(|(transparent, sprout, sapling, orchard)| Self { transparent, sprout, sapling, orchard, }) .boxed() } type Strategy = BoxedStrategy; } impl Arbitrary for ValueBalance { type Parameters = (); fn arbitrary_with(_args: Self::Parameters) -> Self::Strategy { ( any::>(), any::>(), any::>(), any::>(), ) .prop_map(|(transparent, sprout, sapling, orchard)| Self { transparent, sprout, sapling, orchard, }) .boxed() } type Strategy = BoxedStrategy; }