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