use std::path::Path;
use svdtools::common::svd_reader;
#[test]
fn read_and_write() {
let res_dir = Path::new("res/example1");
let svd_path = res_dir.join("stm32l4x2.svd");
let svd = svd_reader::device(&svd_path).unwrap();
let xml = svd_encoder::encode(&svd).unwrap();
let same_svd = svd_parser::parse(&xml).unwrap();
assert_eq!(svd, same_svd)
}