use std::str::FromStr;
use psbt::Psbt;
fn parse_roundtrip(s: &str) {
let psbt = Psbt::from_str(s).unwrap();
Psbt::from_str(&psbt.to_string()).unwrap();
}
#[test]
fn base() { parse_roundtrip(include_str!("valid.v2/base.psbt")); }
#[test]
fn updated() { parse_roundtrip(include_str!("valid.v2/updated.psbt")); }
#[test]
fn nseq() { parse_roundtrip(include_str!("valid.v2/nseq.psbt")); }
#[test]
fn locks() { parse_roundtrip(include_str!("valid.v2/locks.psbt")); }
#[test]
fn in_modifiable() { parse_roundtrip(include_str!("valid.v2/in_modifiable.psbt")); }
#[test]
fn out_modifiable() { parse_roundtrip(include_str!("valid.v2/out_modifiable.psbt")); }
#[test]
fn sighash_single() { parse_roundtrip(include_str!("valid.v2/sighash_single.psbt")); }
#[test]
fn undefined_flag() { parse_roundtrip(include_str!("valid.v2/undefined_flag.psbt")); }
#[test]
fn all_modifiable() { parse_roundtrip(include_str!("valid.v2/all_modifiable.psbt")); }
#[test]
fn all() { parse_roundtrip(include_str!("valid.v2/all.psbt")); }