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