use arbitrary::Arbitrary;
use arbitrary::Unstructured;
use beancount_types::Account;
use beancount_types::Segment;

#[test]
fn arbitrary_account() {
    let mut u = Unstructured::new(b"someverylongandmildlyrandominput");

    insta::assert_debug_snapshot!(Account::arbitrary(&mut u));
}

#[test]
fn arbitrary_segment() {
    let mut u = Unstructured::new(b"somerandominput");

    insta::assert_debug_snapshot!(Segment::arbitrary(&mut u));
}