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