use arbitrary::Arbitrary; use arbitrary::Unstructured; use beancount_types::Amount; #[test] fn arbitrary_amount() { let mut u = Unstructured::new(b"someverylongandmildlyrandominput"); insta::assert_debug_snapshot!(Amount::arbitrary(&mut u)); }