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