use arbitrary::Arbitrary;
use arbitrary::Unstructured;
use beancount_types::Posting;
use beancount_types::Transaction;

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

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

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

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